summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.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/coldfire/iaudio/x5/lcd-remote-x5.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/coldfire/iaudio/x5/lcd-remote-x5.c')
-rw-r--r--firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c b/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c
index 6e3bb01a15..bd1fb19727 100644
--- a/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c
+++ b/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c
@@ -399,7 +399,7 @@ void lcd_remote_update(void)
399{ 399{
400 int y; 400 int y;
401 if(remote_initialized) { 401 if(remote_initialized) {
402 for(y = 0;y < LCD_REMOTE_HEIGHT/8;y++) { 402 for(y = 0;y < LCD_REMOTE_FBHEIGHT;y++) {
403 /* Copy display bitmap to hardware. 403 /* Copy display bitmap to hardware.
404 The COM48-COM63 lines are not connected so we have to skip 404 The COM48-COM63 lines are not connected so we have to skip
405 them. Further, the column address doesn't wrap, so we 405 them. Further, the column address doesn't wrap, so we
@@ -427,8 +427,8 @@ void lcd_remote_update_rect(int x, int y, int width, int height)
427 width = LCD_REMOTE_WIDTH - x; 427 width = LCD_REMOTE_WIDTH - x;
428 if (width <= 0) 428 if (width <= 0)
429 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 429 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
430 if(ymax >= LCD_REMOTE_HEIGHT) 430 if(ymax >= LCD_REMOTE_FBHEIGHT)
431 ymax = LCD_REMOTE_HEIGHT-1; 431 ymax = LCD_REMOTE_FBHEIGHT-1;
432 432
433 /* Copy specified rectangle bitmap to hardware 433 /* Copy specified rectangle bitmap to hardware
434 COM48-COM63 are not connected, so we need to skip those */ 434 COM48-COM63 are not connected, so we need to skip those */