diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index 7caf96015..83d96dfc6 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -976,6 +976,18 @@ Java_org_eehouse_android_xw4_jni_XwJNI_board_1draw return result; } +JNIEXPORT void JNICALL +Java_org_eehouse_android_xw4_jni_XwJNI_board_1drawSnapshot +( JNIEnv *env, jclass C, GamePtrType gamePtr, jobject jdraw, jint width, + jint height ) +{ + XWJNI_START(); + DrawCtx* newDraw = makeDraw( MPPARM(mpool) &state->globalJNI->ti, jdraw ); + board_drawSnapshot( state->game.board, newDraw, width, height ); + destroyDraw( &newDraw ); + XWJNI_END(); +} + #ifdef COMMON_LAYOUT JNIEXPORT void JNICALL Java_org_eehouse_android_xw4_jni_XwJNI_board_1figureLayout diff --git a/xwords4/android/XWords4/res/xml/xwprefs.xml b/xwords4/android/XWords4/res/xml/xwprefs.xml index 09bcbe59e..7b032340d 100644 --- a/xwords4/android/XWords4/res/xml/xwprefs.xml +++ b/xwords4/android/XWords4/res/xml/xwprefs.xml @@ -116,20 +116,19 @@ android:defaultValue="@string/game_summary_field_opponents" /> - - - mpool) curBoard->model, curBoard->server, dctx, curBoard->util ); - + board_setDraw( newBoard, dctx ); /* so draw_dictChanged() will get called */ XP_U16 fontWidth = width / curBoard->gi->boardSize; board_figureLayout( newBoard, curBoard->gi, 0, 0, width, height, - 0, 0, 0, fontWidth, width, XP_TRUE, NULL ); + 0, 0, 0, fontWidth, width, XP_FALSE, NULL ); board_draw( newBoard ); board_destroy( newBoard ); }