summaryrefslogtreecommitdiff
path: root/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-20 19:31:34 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-20 19:31:34 +0000
commit51223e53957943c8b4c142882d2aa86d8025837d (patch)
tree6348e4c292a2e38f501b6ae3676f76ef26ff21e0 /firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
parent283bfb16f1228f581e8a025bba5e2029daa32278 (diff)
downloadrockbox-51223e53957943c8b4c142882d2aa86d8025837d.tar.gz
rockbox-51223e53957943c8b4c142882d2aa86d8025837d.zip
Introduced LCD_FBHEIGHT in addition to the already existing LCD_FBWIDTH to ease framebuffer handling a bit. Added equivalent definitions for the remote LCD.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12419 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c')
-rw-r--r--firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c b/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
index ca4a01b52e..0aacd8af67 100644
--- a/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
+++ b/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
@@ -169,7 +169,7 @@ void lcd_update(void)
169 int y; 169 int y;
170 170
171 /* Copy display bitmap to hardware */ 171 /* Copy display bitmap to hardware */
172 for (y = 0; y < LCD_HEIGHT/8; y++) 172 for (y = 0; y < LCD_FBHEIGHT; y++)
173 { 173 {
174 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); 174 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf));
175 lcd_write_command (LCD_CNTL_HIGHCOL); 175 lcd_write_command (LCD_CNTL_HIGHCOL);
@@ -193,8 +193,8 @@ void lcd_update_rect(int x, int y, int width, int height)
193 width = LCD_WIDTH - x; 193 width = LCD_WIDTH - x;
194 if (width <= 0) 194 if (width <= 0)
195 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 195 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
196 if(ymax >= LCD_HEIGHT/8) 196 if(ymax >= LCD_FBHEIGHT)
197 ymax = LCD_HEIGHT/8-1; 197 ymax = LCD_FBHEIGHT-1;
198 198
199 /* Copy specified rectange bitmap to hardware */ 199 /* Copy specified rectange bitmap to hardware */
200 for (; y <= ymax; y++) 200 for (; y <= ymax; y++)