summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib/xlcd_scroll.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-04-06 20:31:57 +0000
committerJens Arnold <amiconn@rockbox.org>2006-04-06 20:31:57 +0000
commit5ad51c61bcfa5431dcfd396be0ef5664876ec14e (patch)
tree213cb6147c6cbe2875832f03263825754fcf09a3 /apps/plugins/lib/xlcd_scroll.c
parent5106e228ccbfaf5adf96a5e956ffca98a9a0b27e (diff)
downloadrockbox-5ad51c61bcfa5431dcfd396be0ef5664876ec14e.tar.gz
rockbox-5ad51c61bcfa5431dcfd396be0ef5664876ec14e.zip
Greyscale ipods: Fix horizontal scrolling in oscilloscope, the flipped LCD driver broke it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9537 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/xlcd_scroll.c')
-rwxr-xr-xapps/plugins/lib/xlcd_scroll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/xlcd_scroll.c b/apps/plugins/lib/xlcd_scroll.c
index 44117b452c..1e6ad071fc 100755
--- a/apps/plugins/lib/xlcd_scroll.c
+++ b/apps/plugins/lib/xlcd_scroll.c
@@ -70,8 +70,8 @@ void xlcd_scroll_left(int count)
for (bx = 0; bx < blocklen; bx++)
{
--row_addr;
- data = (data << 8) | *row_addr;
- *row_addr = data >> bitcount;
+ data = (data >> 8) | (*row_addr << bitcount);
+ *row_addr = data;
}
addr += LCD_FBWIDTH;
}
@@ -124,8 +124,8 @@ void xlcd_scroll_right(int count)
for (bx = 0; bx < blocklen; bx++)
{
- data = (data >> 8) | (*row_addr << bitcount);
- *row_addr = data;
+ data = (data << 8) | *row_addr;
+ *row_addr = data >> bitcount;
row_addr++;
}
addr += LCD_FBWIDTH;