diff options
Diffstat (limited to 'firmware/target/sh')
-rw-r--r-- | firmware/target/sh/archos/lcd-archos-bitmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/sh/archos/lcd-archos-bitmap.c b/firmware/target/sh/archos/lcd-archos-bitmap.c index 8b57099206..b458c81098 100644 --- a/firmware/target/sh/archos/lcd-archos-bitmap.c +++ b/firmware/target/sh/archos/lcd-archos-bitmap.c | |||
@@ -164,7 +164,7 @@ void lcd_update(void) | |||
164 | int y; | 164 | int y; |
165 | 165 | ||
166 | /* Copy display bitmap to hardware */ | 166 | /* Copy display bitmap to hardware */ |
167 | for (y = 0; y < LCD_HEIGHT/8; y++) | 167 | for (y = 0; y < LCD_FBHEIGHT; y++) |
168 | { | 168 | { |
169 | lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); | 169 | lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); |
170 | lcd_write_command (LCD_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf)); | 170 | lcd_write_command (LCD_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf)); |
@@ -188,8 +188,8 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
188 | width = LCD_WIDTH - x; | 188 | width = LCD_WIDTH - x; |
189 | if (width <= 0) | 189 | if (width <= 0) |
190 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ | 190 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ |
191 | if(ymax >= LCD_HEIGHT/8) | 191 | if(ymax >= LCD_FBHEIGHT) |
192 | ymax = LCD_HEIGHT/8-1; | 192 | ymax = LCD_FBHEIGHT-1; |
193 | 193 | ||
194 | /* Copy specified rectange bitmap to hardware */ | 194 | /* Copy specified rectange bitmap to hardware */ |
195 | for (; y <= ymax; y++) | 195 | for (; y <= ymax; y++) |