From 93434b4f751969e5c27b738c6d5ce52d46bc8285 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 15 Oct 2007 07:09:53 +0000 Subject: 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 --- firmware/drivers/lcd-16bit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware') 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) /* 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: -- cgit v1.2.3