1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Yoshihisa Uchida 2010-06-26 09:14:53 +00:00
parent be70fd89be
commit ac622c6d67
6 changed files with 567 additions and 156 deletions

View file

@ -512,7 +512,8 @@ int tv_create_formed_text(const unsigned char *src, ssize_t bufsize,
tv_get_ucs(src, &ch);
is_indent = (tv_isspace(ch) && !is_break_line);
if (is_indent && preferences->indent_spaces == 0 && (expand_extra_line = !expand_extra_line) == true)
if (is_indent && preferences->line_mode == LM_REFLOW && preferences->indent_spaces == 0
&& (expand_extra_line = !expand_extra_line) == true)
return 0;
for (i = 0; i < block_count; i++)