make boardBegin() a no-op in C

instead of a no-op in java, which takes more work to get to.
This commit is contained in:
Eric House 2016-11-12 06:57:05 -08:00
parent f394bcef64
commit 92e413fa06
3 changed files with 3 additions and 15 deletions

View file

@ -353,17 +353,11 @@ static XP_Bool and_draw_beginDraw( DrawCtx* XP_UNUSED(dctx) ) {return XP_TRUE;}
static void and_draw_endDraw( DrawCtx* XP_UNUSED(dctx) ) {} static void and_draw_endDraw( DrawCtx* XP_UNUSED(dctx) ) {}
static XP_Bool static XP_Bool
and_draw_boardBegin( DrawCtx* dctx, const XP_Rect* rect, and_draw_boardBegin( DrawCtx* XP_UNUSED(dctx), const XP_Rect* XP_UNUSED(rect),
XP_U16 cellWidth, XP_U16 cellHeight, XP_U16 XP_UNUSED(cellWidth), XP_U16 XP_UNUSED(cellHeight),
DrawFocusState XP_UNUSED(dfs) ) DrawFocusState XP_UNUSED(dfs) )
{ {
DRAW_CBK_HEADER( "boardBegin", "(Landroid/graphics/Rect;II)Z" ); return XP_TRUE;
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
jboolean result = (*env)->CallBooleanMethod( env, draw->jdraw, mid,
jrect, cellWidth, cellHeight );
return result;
} }
static XP_Bool static XP_Bool

View file

@ -345,11 +345,6 @@ public class BoardCanvas extends Canvas implements DrawCtx {
} }
} }
public boolean boardBegin( Rect rect, int cellWidth, int cellHeight )
{
return true;
}
public boolean drawCell( final Rect rect, String text, int tile, int value, public boolean drawCell( final Rect rect, String text, int tile, int value,
int owner, int bonus, int hintAtts, int owner, int bonus, int hintAtts,
final int flags ) final int flags )

View file

@ -56,7 +56,6 @@ public interface DrawCtx {
// Rect[] playerRects ); // Rect[] playerRects );
void drawTimer( Rect rect, int player, int secondsLeft ); void drawTimer( Rect rect, int player, int secondsLeft );
boolean boardBegin( Rect rect, int cellWidth, int cellHeight );
boolean drawCell( Rect rect, String text, int tile, int value, boolean drawCell( Rect rect, String text, int tile, int value,
int owner, int bonus, int hintAtts, int flags ); int owner, int bonus, int hintAtts, int flags );