summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-h100-remote.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-05-03 20:22:03 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-05-03 20:22:03 +0000
commit69433c8667846672d2297380b4a34ef382b53062 (patch)
tree6904a08fa3ae72997b9c353eee3542ed18d94314 /firmware/drivers/lcd-h100-remote.c
parent28b5afd05a075cce1f46e5cc85c7e2caae3fc6ee (diff)
downloadrockbox-69433c8667846672d2297380b4a34ef382b53062.tar.gz
rockbox-69433c8667846672d2297380b4a34ef382b53062.zip
Fix fillrect calculation error for 'Screen scrolls out of view'. Fixes bug 5267. Also some minor code policing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r--firmware/drivers/lcd-h100-remote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index f1d1956afe..2d16a08a24 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -1207,7 +1207,8 @@ void lcd_remote_puts_offset(int x, int y, const unsigned char *str, int offset)
1207 1207
1208/* put a string at a given char position, style, and pixel position, 1208/* put a string at a given char position, style, and pixel position,
1209 * skipping first offset pixel columns */ 1209 * skipping first offset pixel columns */
1210void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, int style, int offset) 1210void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str,
1211 int style, int offset)
1211{ 1212{
1212 int xpos,ypos,w,h; 1213 int xpos,ypos,w,h;
1213 int lastmode = drawmode; 1214 int lastmode = drawmode;
@@ -1225,7 +1226,8 @@ void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, int st
1225 (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; 1226 (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID;
1226 lcd_remote_putsxyofs(xpos, ypos, offset, str); 1227 lcd_remote_putsxyofs(xpos, ypos, offset, str);
1227 drawmode ^= DRMODE_INVERSEVID; 1228 drawmode ^= DRMODE_INVERSEVID;
1228 lcd_remote_fillrect(xpos + w, ypos, LCD_REMOTE_WIDTH - (xpos + w), h); 1229 lcd_remote_fillrect(xpos + w - offset, ypos,
1230 LCD_REMOTE_WIDTH - (xpos + w - offset), h);
1229 drawmode = lastmode; 1231 drawmode = lastmode;
1230} 1232}
1231 1233