summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuze
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze')
-rw-r--r--firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
index 21ecdf8afa..c22382f19c 100644
--- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
+++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
@@ -405,12 +405,13 @@ void lcd_update_rect(int x, int y, int width, int height)
405 405
406 ptr = &lcd_framebuffer[y][x]; 406 ptr = &lcd_framebuffer[y][x];
407 407
408 height = ymax - y - 1; /* fix height */
408 do 409 do
409 { 410 {
410 lcd_write_data(ptr, width); 411 lcd_write_data(ptr, width);
411 ptr += LCD_WIDTH; 412 ptr += LCD_WIDTH;
412 } 413 }
413 while (++y <= ymax); 414 while (--height > 0);
414 lcd_busy = false; 415 lcd_busy = false;
415} 416}
416 417