add draw_boardBegin

This commit is contained in:
Andy2 2011-02-24 22:24:24 -08:00
parent 5afb7aadff
commit ce64f79cdd
2 changed files with 10 additions and 1 deletions

View file

@ -221,7 +221,14 @@ static XP_Bool
and_draw_boardBegin( DrawCtx* dctx, const XP_Rect* rect,
XP_U16 cellWidth, XP_U16 cellHeight, DrawFocusState dfs )
{
return XP_TRUE;
DRAW_CBK_HEADER( "boardBegin", "(Landroid/graphics/Rect;III)Z" );
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
jboolean result = (*env)->CallBooleanMethod( env, draw->jdraw, mid,
jrect, cellWidth, cellHeight,
(jint)dfs );
return result;
}
static XP_Bool

View file

@ -49,6 +49,8 @@ public interface DrawCtx {
void drawRemText( Rect rInner, Rect rOuter, int nTilesLeft, boolean focussed );
void score_drawPlayer( Rect rInner, Rect rOuter, DrawScoreInfo dsi );
void drawTimer( Rect rect, int player, int secondsLeft );
boolean boardBegin( Rect rect, int cellWidth, int cellHeight,
int dfs );
boolean drawCell( Rect rect, String text, int tile,
int owner, int bonus, int hintAtts, int flags );