diff options
Diffstat (limited to 'firmware/target/coldfire/mpio/hd300')
-rw-r--r-- | firmware/target/coldfire/mpio/hd300/lcd-hd300.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/coldfire/mpio/hd300/lcd-hd300.c b/firmware/target/coldfire/mpio/hd300/lcd-hd300.c index 31087a5d43..509ed4cd53 100644 --- a/firmware/target/coldfire/mpio/hd300/lcd-hd300.c +++ b/firmware/target/coldfire/mpio/hd300/lcd-hd300.c | |||
@@ -211,7 +211,7 @@ void lcd_update(void) | |||
211 | lcd_write_command(LCD_CNTL_DATA_WRITE); | 211 | lcd_write_command(LCD_CNTL_DATA_WRITE); |
212 | 212 | ||
213 | /* Copy display bitmap to hardware */ | 213 | /* Copy display bitmap to hardware */ |
214 | lcd_write_data (&lcd_framebuffer[0][0], LCD_WIDTH*LCD_FBHEIGHT); | 214 | lcd_write_data (FBADDR(0,0), LCD_WIDTH*LCD_FBHEIGHT); |
215 | } | 215 | } |
216 | 216 | ||
217 | /* Update a fraction of the display. */ | 217 | /* Update a fraction of the display. */ |
@@ -238,6 +238,6 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
238 | lcd_write_command_ex(LCD_CNTL_COLUMN, x, -1); | 238 | lcd_write_command_ex(LCD_CNTL_COLUMN, x, -1); |
239 | 239 | ||
240 | lcd_write_command(LCD_CNTL_DATA_WRITE); | 240 | lcd_write_command(LCD_CNTL_DATA_WRITE); |
241 | lcd_write_data (&lcd_framebuffer[y][x], width); | 241 | lcd_write_data (FBADDR(x,y), width); |
242 | } | 242 | } |
243 | } | 243 | } |