summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib/xlcd_scroll.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-10-08 03:56:37 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-10-08 03:56:37 +0000
commit573d3f284587b5c0aa70668e684cac89dc86e560 (patch)
tree2cec75076e8945788958687cb89aee00af766591 /apps/plugins/lib/xlcd_scroll.c
parent6317bef3ce53ff8e9e834017ca0696ac4803c8b1 (diff)
downloadrockbox-573d3f284587b5c0aa70668e684cac89dc86e560.tar.gz
rockbox-573d3f284587b5c0aa70668e684cac89dc86e560.zip
LCD scrolling routines: Fix the screen scrolling boundary with Vertical Strides.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23005 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/xlcd_scroll.c')
-rw-r--r--apps/plugins/lib/xlcd_scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/xlcd_scroll.c b/apps/plugins/lib/xlcd_scroll.c
index 499dbf13a9..96e0715894 100644
--- a/apps/plugins/lib/xlcd_scroll.c
+++ b/apps/plugins/lib/xlcd_scroll.c
@@ -81,7 +81,7 @@ void xlcd_scroll_up(int count)
length = LCD_HEIGHT - count;
- width = LCD_WIDTH;
+ width = LCD_WIDTH-1;
data = rb->lcd_framebuffer;
do {
@@ -107,7 +107,7 @@ void xlcd_scroll_down(int count)
length = LCD_HEIGHT - count;
- width = LCD_WIDTH;
+ width = LCD_WIDTH-1;
data = rb->lcd_framebuffer;
do {