From ef188164e2d5c8eb00fef2c1d1fd887837c72f4f Mon Sep 17 00:00:00 2001 From: eehouse Date: Sun, 3 Jan 2010 01:02:14 +0000 Subject: [PATCH] implement drawBoardArrow, but without setting tranparency correctly. --- .../XWords4/res/drawable/downarrow.png | Bin 0 -> 154 bytes .../XWords4/res/drawable/rightarrow.png | Bin 0 -> 160 bytes .../eehouse/android/xw4/BoardActivity.java | 2 +- .../org/eehouse/android/xw4/BoardView.java | 20 +++++++++++++++++- .../eehouse/android/xw4/jni/BoardHandler.java | 4 +++- .../org/eehouse/android/xw4/jni/DrawCtx.java | 2 ++ xwords4/android/drawwrapper.c | 17 +++++++++++++++ 7 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 xwords4/android/XWords4/res/drawable/downarrow.png create mode 100644 xwords4/android/XWords4/res/drawable/rightarrow.png diff --git a/xwords4/android/XWords4/res/drawable/downarrow.png b/xwords4/android/XWords4/res/drawable/downarrow.png new file mode 100644 index 0000000000000000000000000000000000000000..5741aa313bd9067bdc28bf6463dfec57306cbd68 GIT binary patch literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^+#t-z3?wHfJxv8tjKx9jP7LeL$-D$|*aCb)T!Hle z|NocXoPQU{;wenv; + const char* sig = "(Landroid/graphics/Rect;IZII)V"; + jmethodID mid = getMethodID( env, draw->j_draw, "drawBoardArrow", sig ); + + jobject jrect = makeJRect( env, rect ); + (*env)->CallVoidMethod( env, draw->j_draw, mid, + jrect, bonus, vert, hintAtts, flags ); + (*env)->DeleteLocalRef( env, jrect ); +} + static XP_Bool and_draw_trayBegin( DrawCtx* dctx, const XP_Rect* rect, XP_U16 owner, DrawFocusState dfs ) @@ -406,6 +422,7 @@ makeDraw( MPFORMAL JNIEnv *env, jobject j_draw ) SET_PROC(drawRemText); SET_PROC(score_drawPlayer); SET_PROC(drawCell); + SET_PROC(drawBoardArrow); SET_PROC(trayBegin); SET_PROC(drawTile);