From 73c283e969916b4ff918a7ff9ccb15038fb2ff18 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 1 Aug 2006 17:48:38 +0000 Subject: Fix bug #5724 - Missing characters in text viewer, the number of characters in the line to display was calculated with a too wide character as reference git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10395 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/viewer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 607d805693..e30f08defb 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -268,7 +268,7 @@ bool done = false; int col = 0; #define ADVANCE_COUNTERS(c) { width += glyph_width(c); k++; } -#define LINE_IS_FULL ((k draw_columns)) +#define LINE_IS_FULL ((k>=MAX_COLUMNS-1) ||( width >= draw_columns)) #define LINE_IS_NOT_FULL ((kiso_decode(scratch_buffer + col, utf8_buffer, - prefs.encoding, draw_columns/glyph_width('a')); + prefs.encoding, draw_columns/glyph_width('i')); *endptr = 0; } } -- cgit v1.2.3