summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-e200v2
diff options
context:
space:
mode:
authorMichael Chicoine <mc2739@gmail.com>2009-10-26 15:42:26 +0000
committerMichael Chicoine <mc2739@gmail.com>2009-10-26 15:42:26 +0000
commit10f46b3c8a35780c807122a52974f46bbe7b8de1 (patch)
treedfb54cef34c098fabb7029137a8e76da5e143ffb /firmware/target/arm/as3525/sansa-e200v2
parentb341f5d594c10ff541764a506dc8a2d5c6a8752a (diff)
fix an off-by-one error in lcd_update_rect()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23359 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2')
-rw-r--r--firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c
index 24fc4eae57..e5f6453f43 100644
--- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c
+++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c
@@ -564,7 +564,7 @@ void lcd_update_rect(int x, int y, int width, int height)
lcd_write_data(ptr, width);
ptr += LCD_WIDTH;
}
- while (--height > 0);
+ while (--height >= 0);
lcd_busy = false;
} /* lcd_update_rect */