diff options
Diffstat (limited to 'firmware/target/coldfire/iriver/h300')
-rw-r--r-- | firmware/target/coldfire/iriver/h300/lcd-h300.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/coldfire/iriver/h300/lcd-h300.c b/firmware/target/coldfire/iriver/h300/lcd-h300.c index 6c21a7e260..191c769c97 100644 --- a/firmware/target/coldfire/iriver/h300/lcd-h300.c +++ b/firmware/target/coldfire/iriver/h300/lcd-h300.c @@ -447,13 +447,13 @@ void lcd_update_rect(int x, int y, int width, int height) if (width == LCD_WIDTH) { dma_count = 1; - SAR3 = (unsigned long)lcd_framebuffer[y]; + SAR3 = (unsigned long)FBADDR(0, y); BCR3 = (LCD_WIDTH*sizeof(fb_data)) * height; } else { dma_count = height; - SAR3 = dma_addr = (unsigned long)&lcd_framebuffer[y][x]; + SAR3 = dma_addr = (unsigned long)FBADDR(x,y); BCR3 = dma_len = width * sizeof(fb_data); } DCR3 = DMA_INT | DMA_AA | DMA_BWC(1) |