diff options
Diffstat (limited to 'firmware/target/coldfire/iaudio/m3/lcd-m3.c')
-rw-r--r-- | firmware/target/coldfire/iaudio/m3/lcd-m3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/coldfire/iaudio/m3/lcd-m3.c b/firmware/target/coldfire/iaudio/m3/lcd-m3.c index 380789e7f7..1d61daf323 100644 --- a/firmware/target/coldfire/iaudio/m3/lcd-m3.c +++ b/firmware/target/coldfire/iaudio/m3/lcd-m3.c | |||
@@ -265,7 +265,7 @@ void lcd_update(void) | |||
265 | have to update one page at a time. */ | 265 | have to update one page at a time. */ |
266 | lcd_write_command(LCD_SET_PAGE | (y > 5 ? y + 2 : y)); | 266 | lcd_write_command(LCD_SET_PAGE | (y > 5 ? y + 2 : y)); |
267 | lcd_write_command_e(LCD_SET_COLUMN | 0, 0); | 267 | lcd_write_command_e(LCD_SET_COLUMN | 0, 0); |
268 | lcd_write_data(lcd_framebuffer[y], LCD_WIDTH); | 268 | lcd_write_data(FBADDR(0, y), LCD_WIDTH); |
269 | } | 269 | } |
270 | } | 270 | } |
271 | } | 271 | } |
@@ -295,7 +295,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
295 | lcd_write_command(LCD_SET_PAGE | ((y > 5 ? y + 2 : y) & 0xf)); | 295 | lcd_write_command(LCD_SET_PAGE | ((y > 5 ? y + 2 : y) & 0xf)); |
296 | lcd_write_command_e(LCD_SET_COLUMN | ((x >> 4) & 0xf), x & 0xf); | 296 | lcd_write_command_e(LCD_SET_COLUMN | ((x >> 4) & 0xf), x & 0xf); |
297 | 297 | ||
298 | lcd_write_data(&lcd_framebuffer[y][x], width); | 298 | lcd_write_data(FBADDR(x,y), width); |
299 | } | 299 | } |
300 | } | 300 | } |
301 | } | 301 | } |