From 51223e53957943c8b4c142882d2aa86d8025837d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 20 Feb 2007 19:31:34 +0000 Subject: 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 --- firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/coldfire/iaudio') 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) { int y; if(remote_initialized) { - for(y = 0;y < LCD_REMOTE_HEIGHT/8;y++) { + for(y = 0;y < LCD_REMOTE_FBHEIGHT;y++) { /* Copy display bitmap to hardware. The COM48-COM63 lines are not connected so we have to skip 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) width = LCD_REMOTE_WIDTH - x; if (width <= 0) return; /* nothing left to do, 0 is harmful to lcd_write_data() */ - if(ymax >= LCD_REMOTE_HEIGHT) - ymax = LCD_REMOTE_HEIGHT-1; + if(ymax >= LCD_REMOTE_FBHEIGHT) + ymax = LCD_REMOTE_FBHEIGHT-1; /* Copy specified rectangle bitmap to hardware COM48-COM63 are not connected, so we need to skip those */ -- cgit v1.2.3