diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
169 | int y; | 169 | int y; |
170 | 170 | ||
171 | /* Copy display bitmap to hardware */ | 171 | /* Copy display bitmap to hardware */ |
172 | for (y = 0; y < LCD_HEIGHT/8; y++) | 172 | for (y = 0; y < LCD_FBHEIGHT; y++) |
173 | { | 173 | { |
174 | lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); | 174 | lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); |
175 | lcd_write_command (LCD_CNTL_HIGHCOL); | 175 | lcd_write_command (LCD_CNTL_HIGHCOL); |
@@ -193,8 +193,8 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
193 | width = LCD_WIDTH - x; | 193 | width = LCD_WIDTH - x; |
194 | if (width <= 0) | 194 | if (width <= 0) |
195 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ | 195 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ |
196 | if(ymax >= LCD_HEIGHT/8) | 196 | if(ymax >= LCD_FBHEIGHT) |
197 | ymax = LCD_HEIGHT/8-1; | 197 | ymax = LCD_FBHEIGHT-1; |
198 | 198 | ||
199 | /* Copy specified rectange bitmap to hardware */ | 199 | /* Copy specified rectange bitmap to hardware */ |
200 | for (; y <= ymax; y++) | 200 | for (; y <= ymax; y++) |