summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-09-27 17:02:26 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-09-27 17:02:26 +0000
commit68be596335be463947b80dddd904f5c4c340a129 (patch)
tree5847e80ae91e36730b98fab3d7b0ed1e6a072fb8
parentf3b015f73b29f2d3514c32a9b8b8f0338b52e358 (diff)
downloadrockbox-68be596335be463947b80dddd904f5c4c340a129.tar.gz
rockbox-68be596335be463947b80dddd904f5c4c340a129.tar.bz2
rockbox-68be596335be463947b80dddd904f5c4c340a129.zip
Fix corrupted display of the gradient selector for scrolling lines in some colour configurations. Thanks to preglow for spotting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14869 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd-16bit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index 44d468521d..24f026b290 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -1033,11 +1033,11 @@ void lcd_scroll_fn(void)
int h_b = RGB_UNPACK_BLUE(lss_pattern) << 16;
int h_g = RGB_UNPACK_GREEN(lss_pattern) << 16;
int rstep = (h_r - ((signed)RGB_UNPACK_RED(lse_pattern) << 16))
- / pf->height;
+ / (signed)pf->height;
int gstep = (h_g - ((signed)RGB_UNPACK_GREEN(lse_pattern) << 16))
- / pf->height;
+ / (signed)pf->height;
int bstep = (h_b - ((signed)RGB_UNPACK_BLUE(lse_pattern) << 16))
- / pf->height;
+ / (signed)pf->height;
unsigned int count;
fg_pattern = lss_pattern;