summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-10-15 07:09:53 +0000
committerJens Arnold <amiconn@rockbox.org>2007-10-15 07:09:53 +0000
commit93434b4f751969e5c27b738c6d5ce52d46bc8285 (patch)
treed611348506ff7c02b1471d8ec6c38b961d1ddedd
parent85fba243b1d8979c4534f241e802abdde16fb5eb (diff)
downloadrockbox-93434b4f751969e5c27b738c6d5ce52d46bc8285.zip
rockbox-93434b4f751969e5c27b738c6d5ce52d46bc8285.tar.gz
rockbox-93434b4f751969e5c27b738c6d5ce52d46bc8285.tar.bz2
rockbox-93434b4f751969e5c27b738c6d5ce52d46bc8285.tar.xz
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
-rw-r--r--firmware/drivers/lcd-16bit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index e838d51..2c36ab9 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -1024,13 +1024,13 @@ void lcd_scroll_fn(void)
/* Solid colour line selector */
drawmode = DRMODE_FG;
fg_pattern = lss_pattern;
- lcd_fillrect(0, ypos, LCD_WIDTH, pf->height);
+ lcd_fillrect(xpos, ypos, LCD_WIDTH - xpos, pf->height);
fg_pattern = lst_pattern;
break;
case STYLE_GRADIENT:
/* Gradient line selector */
drawmode = DRMODE_FG;
- lcd_gradient_rect(0, LCD_WIDTH, ypos, (signed)pf->height);
+ lcd_gradient_rect(xpos, LCD_WIDTH, ypos, (signed)pf->height);
fg_pattern = lst_pattern;
break;
default: