summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorMichael Stummvoll <michael@stummi.org>2010-11-26 14:22:40 +0000
committerMichael Stummvoll <michael@stummi.org>2010-11-26 14:22:40 +0000
commit4fe5580fbe9d234b6162a9a421804cf70283adfa (patch)
tree8fcee0c7745cc3e0e7b14f6a9dc4b96d9a2dab51 /apps/plugins/rockboy/sys_rockbox.c
parent7c1c9ccff7c2cda13edfe54f9a073509b1a5151e (diff)
downloadrockbox-4fe5580fbe9d234b6162a9a421804cf70283adfa.tar.gz
rockbox-4fe5580fbe9d234b6162a9a421804cf70283adfa.tar.bz2
rockbox-4fe5580fbe9d234b6162a9a421804cf70283adfa.zip
Fixing FS#11745 (Rockboy Screen on Sansa Clip+)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28669 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 7148c8c2b1..0bed7f8de6 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -236,7 +236,7 @@ void vid_update(int scanline)
scanline-=16;
else if (fb.mode==2)
scanline-=8;
- scanline_remapped = scanline / 16;
+ scanline_remapped = (scanline / 16 + 7) % 8;
frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH;
while (cnt < 160) {
balance += LCD_WIDTH;