mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-02 06:20:14 +01:00
translate blank text from '_' to '?'
This commit is contained in:
parent
6e08bbc9ce
commit
08d5139631
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@ and_draw_drawCell( DrawCtx* dctx, const XP_Rect* rect, const XP_UCHAR* text,
|
||||||
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
|
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
|
||||||
jstring jtext = NULL;
|
jstring jtext = NULL;
|
||||||
if ( !!text ) {
|
if ( !!text ) {
|
||||||
|
if ( 0 == strcmp( "_", text ) ) {
|
||||||
|
text = "?";
|
||||||
|
}
|
||||||
jtext = (*env)->NewStringUTF( env, text );
|
jtext = (*env)->NewStringUTF( env, text );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue