diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-10-15 07:09:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-10-15 07:09:53 +0000 |
commit | 93434b4f751969e5c27b738c6d5ce52d46bc8285 (patch) | |
tree | d611348506ff7c02b1471d8ec6c38b961d1ddedd /firmware | |
parent | 85fba243b1d8979c4534f241e802abdde16fb5eb (diff) | |
download | rockbox-93434b4f751969e5c27b738c6d5ce52d46bc8285.tar.gz rockbox-93434b4f751969e5c27b738c6d5ce52d46bc8285.zip |
Bugfix: The solid colour and gradient selector no longer extends to the left display margin when the text needs to scroll and the lcd margins are zeroed, e.g. overwriting the icon in the file browser when loading a file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15115 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd-16bit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index e838d5106c..2c36ab993a 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c | |||
@@ -1024,13 +1024,13 @@ void lcd_scroll_fn(void) | |||
1024 | /* Solid colour line selector */ | 1024 | /* Solid colour line selector */ |
1025 | drawmode = DRMODE_FG; | 1025 | drawmode = DRMODE_FG; |
1026 | fg_pattern = lss_pattern; | 1026 | fg_pattern = lss_pattern; |
1027 | lcd_fillrect(0, ypos, LCD_WIDTH, pf->height); | 1027 | lcd_fillrect(xpos, ypos, LCD_WIDTH - xpos, pf->height); |
1028 | fg_pattern = lst_pattern; | 1028 | fg_pattern = lst_pattern; |
1029 | break; | 1029 | break; |
1030 | case STYLE_GRADIENT: | 1030 | case STYLE_GRADIENT: |
1031 | /* Gradient line selector */ | 1031 | /* Gradient line selector */ |
1032 | drawmode = DRMODE_FG; | 1032 | drawmode = DRMODE_FG; |
1033 | lcd_gradient_rect(0, LCD_WIDTH, ypos, (signed)pf->height); | 1033 | lcd_gradient_rect(xpos, LCD_WIDTH, ypos, (signed)pf->height); |
1034 | fg_pattern = lst_pattern; | 1034 | fg_pattern = lst_pattern; |
1035 | break; | 1035 | break; |
1036 | default: | 1036 | default: |