summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos/lcd-archos-bitmap.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/sh/archos/lcd-archos-bitmap.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/sh/archos/lcd-archos-bitmap.c')
-rw-r--r--firmware/target/sh/archos/lcd-archos-bitmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/sh/archos/lcd-archos-bitmap.c b/firmware/target/sh/archos/lcd-archos-bitmap.c
index 8b57099206..b458c81098 100644
--- a/firmware/target/sh/archos/lcd-archos-bitmap.c
+++ b/firmware/target/sh/archos/lcd-archos-bitmap.c
@@ -164,7 +164,7 @@ void lcd_update(void)
164 int y; 164 int y;
165 165
166 /* Copy display bitmap to hardware */ 166 /* Copy display bitmap to hardware */
167 for (y = 0; y < LCD_HEIGHT/8; y++) 167 for (y = 0; y < LCD_FBHEIGHT; y++)
168 { 168 {
169 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); 169 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf));
170 lcd_write_command (LCD_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf)); 170 lcd_write_command (LCD_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf));
@@ -188,8 +188,8 @@ void lcd_update_rect(int x, int y, int width, int height)
188 width = LCD_WIDTH - x; 188 width = LCD_WIDTH - x;
189 if (width <= 0) 189 if (width <= 0)
190 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 190 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
191 if(ymax >= LCD_HEIGHT/8) 191 if(ymax >= LCD_FBHEIGHT)
192 ymax = LCD_HEIGHT/8-1; 192 ymax = LCD_FBHEIGHT-1;
193 193
194 /* Copy specified rectange bitmap to hardware */ 194 /* Copy specified rectange bitmap to hardware */
195 for (; y <= ymax; y++) 195 for (; y <= ymax; y++)