mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
f3b015f73b
commit
68be596335
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue