summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-h100-remote.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-05-06 06:37:23 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-05-06 06:37:23 +0000
commit33bd2180107848d3ac9af0411cd9d5cd44dbe697 (patch)
tree3450b4884057073c95165fa5d29fd651e6aeec91 /firmware/drivers/lcd-h100-remote.c
parentb4efbdcdbb14132e474a74f16ea13f06bd219104 (diff)
downloadrockbox-33bd2180107848d3ac9af0411cd9d5cd44dbe697.tar.gz
rockbox-33bd2180107848d3ac9af0411cd9d5cd44dbe697.zip
Patch #5182 by Liberman Shachar - Vertical screen scroll bug fix (inverse bar crop in vertical scroll)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9881 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, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index 2d16a08a24..d023aeb94b 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -1210,7 +1210,7 @@ void lcd_remote_puts_offset(int x, int y, const unsigned char *str, int offset)
1210void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, 1210void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str,
1211 int style, int offset) 1211 int style, int offset)
1212{ 1212{
1213 int xpos,ypos,w,h; 1213 int xpos,ypos,w,h,xrect;
1214 int lastmode = drawmode; 1214 int lastmode = drawmode;
1215 1215
1216 /* make sure scrolling is turned off on the line we are updating */ 1216 /* make sure scrolling is turned off on the line we are updating */
@@ -1226,8 +1226,8 @@ void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str,
1226 (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; 1226 (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID;
1227 lcd_remote_putsxyofs(xpos, ypos, offset, str); 1227 lcd_remote_putsxyofs(xpos, ypos, offset, str);
1228 drawmode ^= DRMODE_INVERSEVID; 1228 drawmode ^= DRMODE_INVERSEVID;
1229 lcd_remote_fillrect(xpos + w - offset, ypos, 1229 xrect = xpos + MAX(w - offset, 0);
1230 LCD_REMOTE_WIDTH - (xpos + w - offset), h); 1230 lcd_remote_fillrect(xrect, ypos, LCD_REMOTE_WIDTH - xrect, h);
1231 drawmode = lastmode; 1231 drawmode = lastmode;
1232} 1232}
1233 1233