catch up with API change

This commit is contained in:
Andy2 2011-04-11 06:16:25 -07:00
parent 4272686034
commit dc70db5ba4
3 changed files with 5 additions and 4 deletions

View file

@ -387,8 +387,8 @@ and_draw_dictChanged( DrawCtx* dctx, XP_S16 playerNum,
{
AndDraw* draw = (AndDraw*)dctx;
if ( NULL != draw->jdraw ) {
DRAW_CBK_HEADER( "dictChanged", "(I)V" );
(*env)->CallVoidMethod( env, draw->jdraw, mid, (jint)dict );
DRAW_CBK_HEADER( "dictChanged", "(II)V" );
(*env)->CallVoidMethod( env, draw->jdraw, mid, playerNum, (jint)dict );
}
}

View file

@ -707,7 +707,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
}
}
public void dictChanged( int dictPtr )
public void dictChanged( int playerNum, int dictPtr )
{
if ( m_dictPtr != dictPtr ) {
if ( m_dictPtr == 0 ||

View file

@ -1,3 +1,4 @@
/* -*- compile-command: "cd ../../../../../../; ant install"; -*- */
/*
* Copyright 2009-2010 by Eric House (xwords@eehouse.org). All
* rights reserved.
@ -76,6 +77,6 @@ public interface DrawCtx {
void objFinished( /*BoardObjectType*/int typ, Rect rect, int dfs );
void dictChanged( int dictPtr );
void dictChanged( int player, int dictPtr );
}