summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipzip
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipzip')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
index 03ed1de5d5..48594a2ac9 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
@@ -440,9 +440,10 @@ void lcd_update_rect(int x, int y, int width, int height)
440 /* setup GRAM write window */ 440 /* setup GRAM write window */
441 lcd_setup_rect(x, x_end - 1, y, y_end - 1); 441 lcd_setup_rect(x, x_end - 1, y, y_end - 1);
442 442
443 void* (*fbaddr)(int x, int y) = FB_CURRENTVP_BUFFER->get_address_fn;
443 /* write to GRAM */ 444 /* write to GRAM */
444 for (row = y; row < y_end; row++) { 445 for (row = y; row < y_end; row++) {
445 lcd_write_data(FBADDR(x,row), width); 446 lcd_write_data(fbaddr(x,row), width);
446 } 447 }
447} 448}
448 449