mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
don't call through to java draw_dictChanged unless it's for the main
game dict.
This commit is contained in:
parent
9d973cca15
commit
6aa0d38c45
1 changed files with 10 additions and 4 deletions
|
@ -385,10 +385,16 @@ static void
|
||||||
and_draw_dictChanged( DrawCtx* dctx, XP_S16 playerNum,
|
and_draw_dictChanged( DrawCtx* dctx, XP_S16 playerNum,
|
||||||
const DictionaryCtxt* dict )
|
const DictionaryCtxt* dict )
|
||||||
{
|
{
|
||||||
AndDraw* draw = (AndDraw*)dctx;
|
/* We'll always have a dict for the game itself ( playerNum==-1) and it'll
|
||||||
if ( NULL != draw->jdraw ) {
|
have the same lang as the others so it's the only one that needs to
|
||||||
DRAW_CBK_HEADER( "dictChanged", "(II)V" );
|
make it through. */
|
||||||
(*env)->CallVoidMethod( env, draw->jdraw, mid, playerNum, (jint)dict );
|
if ( playerNum < 0 ) {
|
||||||
|
AndDraw* draw = (AndDraw*)dctx;
|
||||||
|
if ( NULL != draw->jdraw ) {
|
||||||
|
DRAW_CBK_HEADER( "dictChanged", "(II)V" );
|
||||||
|
(*env)->CallVoidMethod( env, draw->jdraw, mid, playerNum,
|
||||||
|
(jint)dict );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue