summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c
index 92864c9ed7..ceb7b4e090 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c
@@ -637,8 +637,9 @@ void lcd_update_rect(int x, int y, int w, int h)
637 } 637 }
638 else 638 else
639 { 639 {
640 void* (*fbaddr)(int x, int y) = FB_CURRENTVP_BUFFER->get_address_fn;
640 for(int i = 0; i < h; i++) 641 for(int i = 0; i < h; i++)
641 memcpy((fb_data *)FRAME + i * w, FBADDR(x,y + i), w * sizeof(fb_data)); 642 memcpy((fb_data *)FRAME + i * w, fbaddr(x,y + i), w * sizeof(fb_data));
642 } 643 }
643 /* WARNING The LCDIF has a limitation on the vertical count ! In 16-bit packed mode 644 /* WARNING The LCDIF has a limitation on the vertical count ! In 16-bit packed mode
644 * (which we used, ie 16-bit per pixel, 2 pixels per 32-bit words), the v_count 645 * (which we used, ie 16-bit per pixel, 2 pixels per 32-bit words), the v_count