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/arm/iriver/ifp7xx/lcd-ifp7xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c') 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) int y; /* Copy display bitmap to hardware */ - for (y = 0; y < LCD_HEIGHT/8; y++) + for (y = 0; y < LCD_FBHEIGHT; y++) { lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); lcd_write_command (LCD_CNTL_HIGHCOL); @@ -193,8 +193,8 @@ void lcd_update_rect(int x, int y, int width, int height) width = LCD_WIDTH - x; if (width <= 0) return; /* nothing left to do, 0 is harmful to lcd_write_data() */ - if(ymax >= LCD_HEIGHT/8) - ymax = LCD_HEIGHT/8-1; + if(ymax >= LCD_FBHEIGHT) + ymax = LCD_FBHEIGHT-1; /* Copy specified rectange bitmap to hardware */ for (; y <= ymax; y++) -- cgit v1.2.3