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
This commit is contained in:
Nicolas Pennequin 2007-09-27 17:02:26 +00:00
parent f3b015f73b
commit 68be596335

View file

@ -1033,11 +1033,11 @@ void lcd_scroll_fn(void)
int h_b = RGB_UNPACK_BLUE(lss_pattern) << 16; int h_b = RGB_UNPACK_BLUE(lss_pattern) << 16;
int h_g = RGB_UNPACK_GREEN(lss_pattern) << 16; int h_g = RGB_UNPACK_GREEN(lss_pattern) << 16;
int rstep = (h_r - ((signed)RGB_UNPACK_RED(lse_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)) 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)) int bstep = (h_b - ((signed)RGB_UNPACK_BLUE(lse_pattern) << 16))
/ pf->height; / (signed)pf->height;
unsigned int count; unsigned int count;
fg_pattern = lss_pattern; fg_pattern = lss_pattern;