diff options
author | Mohamed Tarek <mt@rockbox.org> | 2009-10-09 01:05:40 +0000 |
---|---|---|
committer | Mohamed Tarek <mt@rockbox.org> | 2009-10-09 01:05:40 +0000 |
commit | 7220cbb890d8ad2a8047f960f5a3d7c27c9e06a9 (patch) | |
tree | 539b9207a2703f995b8669a472d44c4c433caa1b | |
parent | 228260722489d0c665dd025e61af053b0247d99d (diff) | |
download | rockbox-7220cbb890d8ad2a8047f960f5a3d7c27c9e06a9.tar.gz rockbox-7220cbb890d8ad2a8047f960f5a3d7c27c9e06a9.zip |
Fix a bug in a bidirectional text scrolling; s->offset doesn't need to be set when backward scrolling starts. This fixes bidirectional scrolling in
RTL and for certain file-names in LTR.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23022 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index 9d5c78b905..38fa55b02d 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c | |||
@@ -321,7 +321,6 @@ void LCDFN(scroll_fn)(void) | |||
321 | } | 321 | } |
322 | if (abs(s->offset) >= s->width - (current_vp->width - xpos)) { | 322 | if (abs(s->offset) >= s->width - (current_vp->width - xpos)) { |
323 | /* at end of line */ | 323 | /* at end of line */ |
324 | s->offset = s->width - (current_vp->width - xpos); | ||
325 | s->backward = true; | 324 | s->backward = true; |
326 | s->start_tick = current_tick + LCDFN(scroll_info).delay * 2; | 325 | s->start_tick = current_tick + LCDFN(scroll_info).delay * 2; |
327 | } | 326 | } |