diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-02-20 19:31:34 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-20 19:31:34 +0000 |
commit | 51223e53957943c8b4c142882d2aa86d8025837d (patch) | |
tree | 6348e4c292a2e38f501b6ae3676f76ef26ff21e0 /firmware/target/coldfire/iriver | |
parent | 283bfb16f1228f581e8a025bba5e2029daa32278 (diff) | |
download | rockbox-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/iriver')
-rw-r--r-- | firmware/target/coldfire/iriver/h100/lcd-h100.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/coldfire/iriver/h100/lcd-h100.c b/firmware/target/coldfire/iriver/h100/lcd-h100.c index 8afb23b85c..a721273384 100644 --- a/firmware/target/coldfire/iriver/h100/lcd-h100.c +++ b/firmware/target/coldfire/iriver/h100/lcd-h100.c | |||
@@ -189,7 +189,7 @@ void lcd_update(void) | |||
189 | int y; | 189 | int y; |
190 | 190 | ||
191 | /* Copy display bitmap to hardware */ | 191 | /* Copy display bitmap to hardware */ |
192 | for (y = 0; y < LCD_HEIGHT/4; y++) | 192 | for (y = 0; y < LCD_FBHEIGHT; y++) |
193 | { | 193 | { |
194 | lcd_write_command_ex(LCD_CNTL_PAGE, y, -1); | 194 | lcd_write_command_ex(LCD_CNTL_PAGE, y, -1); |
195 | lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1); | 195 | lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1); |
@@ -213,8 +213,8 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
213 | width = LCD_WIDTH - x; | 213 | width = LCD_WIDTH - x; |
214 | if (width <= 0) | 214 | if (width <= 0) |
215 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ | 215 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ |
216 | if(ymax >= LCD_HEIGHT/4) | 216 | if(ymax >= LCD_FBHEIGHT) |
217 | ymax = LCD_HEIGHT/4-1; | 217 | ymax = LCD_FBHEIGHT-1; |
218 | 218 | ||
219 | /* Copy specified rectange bitmap to hardware */ | 219 | /* Copy specified rectange bitmap to hardware */ |
220 | for (; y <= ymax; y++) | 220 | for (; y <= ymax; y++) |