mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
draw_scoreBegin now returns a boolean
This commit is contained in:
parent
c79b3e2395
commit
4da3edabbb
1 changed files with 7 additions and 4 deletions
|
@ -104,13 +104,14 @@ makeDSI( AndDraw* draw, int indx, const DrawScoreInfo* dsi )
|
||||||
XP_ASSERT( !!draw->jdraw ); \
|
XP_ASSERT( !!draw->jdraw ); \
|
||||||
jmethodID mid = getMethodID( env, draw->jdraw, nam, sig );
|
jmethodID mid = getMethodID( env, draw->jdraw, nam, sig );
|
||||||
|
|
||||||
static void
|
static XP_Bool
|
||||||
and_draw_scoreBegin( DrawCtx* dctx, const XP_Rect* rect,
|
and_draw_scoreBegin( DrawCtx* dctx, const XP_Rect* rect,
|
||||||
XP_U16 numPlayers,
|
XP_U16 numPlayers,
|
||||||
const XP_S16* const scores,
|
const XP_S16* const scores,
|
||||||
XP_S16 remCount, DrawFocusState dfs )
|
XP_S16 remCount, DrawFocusState dfs )
|
||||||
{
|
{
|
||||||
DRAW_CBK_HEADER("scoreBegin", "(Landroid/graphics/Rect;I[III)V" );
|
jboolean result;
|
||||||
|
DRAW_CBK_HEADER("scoreBegin", "(Landroid/graphics/Rect;I[III)Z" );
|
||||||
|
|
||||||
jint jarr[numPlayers];
|
jint jarr[numPlayers];
|
||||||
int ii;
|
int ii;
|
||||||
|
@ -120,10 +121,12 @@ and_draw_scoreBegin( DrawCtx* dctx, const XP_Rect* rect,
|
||||||
jintArray jscores = makeIntArray( env, numPlayers, jarr );
|
jintArray jscores = makeIntArray( env, numPlayers, jarr );
|
||||||
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
|
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
|
||||||
|
|
||||||
(*env)->CallVoidMethod( env, draw->jdraw, mid,
|
result = (*env)->CallBooleanMethod( env, draw->jdraw, mid,
|
||||||
jrect, numPlayers, jscores, remCount, dfs );
|
jrect, numPlayers, jscores, remCount,
|
||||||
|
dfs );
|
||||||
|
|
||||||
(*env)->DeleteLocalRef( env, jscores );
|
(*env)->DeleteLocalRef( env, jscores );
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue