summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/viewer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index e3d0903d01..9db19d4158 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -462,11 +462,12 @@ unsigned char* get_ucs(const unsigned char* str, unsigned short* ch)
462 rb->utf8decode(utf8_tmp, ch); 462 rb->utf8decode(utf8_tmp, ch);
463 463
464#ifdef HAVE_LCD_BITMAP 464#ifdef HAVE_LCD_BITMAP
465 if ((prefs.encoding == SJIS && *str > 0xA0 && *str < 0xE0) || prefs.encoding < SJIS) 465 if (prefs.encoding >= SJIS && *str >= 0x80
466 return (unsigned char*)str+1; 466 && !(prefs.encoding == SJIS && *str > 0xA0 && *str < 0xE0))
467 return (unsigned char*)str+2;
467 else 468 else
468#endif 469#endif
469 return (unsigned char*)str+2; 470 return (unsigned char*)str+1;
470} 471}
471 472
472bool done = false; 473bool done = false;