diff options
Diffstat (limited to 'firmware/drivers/lcd-memframe.c')
-rw-r--r-- | firmware/drivers/lcd-memframe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-memframe.c b/firmware/drivers/lcd-memframe.c index dd878876bf..bb1682b074 100644 --- a/firmware/drivers/lcd-memframe.c +++ b/firmware/drivers/lcd-memframe.c | |||
@@ -66,7 +66,7 @@ void lcd_update(void) | |||
66 | return; | 66 | return; |
67 | 67 | ||
68 | /* Copy the Rockbox framebuffer to the second framebuffer */ | 68 | /* Copy the Rockbox framebuffer to the second framebuffer */ |
69 | lcd_copy_buffer_rect(LCD_FRAMEBUF_ADDR(0, 0), &lcd_framebuffer[0][0], | 69 | lcd_copy_buffer_rect(LCD_FRAMEBUF_ADDR(0, 0), FBADDR(0,0), |
70 | LCD_WIDTH*LCD_HEIGHT, 1); | 70 | LCD_WIDTH*LCD_HEIGHT, 1); |
71 | } | 71 | } |
72 | #endif /* LCD_OPTIMIZED_UPDATE */ | 72 | #endif /* LCD_OPTIMIZED_UPDATE */ |
@@ -95,7 +95,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
95 | return; /* nothing left to do */ | 95 | return; /* nothing left to do */ |
96 | 96 | ||
97 | dst = LCD_FRAMEBUF_ADDR(x, y); | 97 | dst = LCD_FRAMEBUF_ADDR(x, y); |
98 | src = &lcd_framebuffer[y][x]; | 98 | src = FBADDR(x,y); |
99 | 99 | ||
100 | /* Copy part of the Rockbox framebuffer to the second framebuffer */ | 100 | /* Copy part of the Rockbox framebuffer to the second framebuffer */ |
101 | if (width < LCD_WIDTH) | 101 | if (width < LCD_WIDTH) |