summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_text_processor.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-06-26 09:14:53 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-06-26 09:14:53 +0000
commitac622c6d673c708d48527db8a189401422a5d03c (patch)
treefb6bbde022027ccf24b2cb1be49a3c7369cf45e0 /apps/plugins/text_viewer/tv_text_processor.c
parentbe70fd89be787e2b24604f9ba785b87c1f8f1d22 (diff)
downloadrockbox-ac622c6d673c708d48527db8a189401422a5d03c.tar.gz
rockbox-ac622c6d673c708d48527db8a189401422a5d03c.zip
text viewer: reworks screen access logics and some bugs fix.
- screen access logics separte from tv_window. (new tv_display.[ch]) - using multi screen api. - (bug fix) the head of the each line is not normally displayed when the alignment is RIGHT. - (bug fix) unnecessary blank line is not displayed. (a part of FS#11400). - (bug fix) the order by which callback functions were called was not correct. (FIFO->FILO) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_text_processor.c')
-rw-r--r--apps/plugins/text_viewer/tv_text_processor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_text_processor.c b/apps/plugins/text_viewer/tv_text_processor.c
index 1ddee62077..edb2ad0483 100644
--- a/apps/plugins/text_viewer/tv_text_processor.c
+++ b/apps/plugins/text_viewer/tv_text_processor.c
@@ -512,7 +512,8 @@ int tv_create_formed_text(const unsigned char *src, ssize_t bufsize,
512 tv_get_ucs(src, &ch); 512 tv_get_ucs(src, &ch);
513 is_indent = (tv_isspace(ch) && !is_break_line); 513 is_indent = (tv_isspace(ch) && !is_break_line);
514 514
515 if (is_indent && preferences->indent_spaces == 0 && (expand_extra_line = !expand_extra_line) == true) 515 if (is_indent && preferences->line_mode == LM_REFLOW && preferences->indent_spaces == 0
516 && (expand_extra_line = !expand_extra_line) == true)
516 return 0; 517 return 0;
517 518
518 for (i = 0; i < block_count; i++) 519 for (i = 0; i < block_count; i++)