summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c')
-rw-r--r--firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
index a1a2be25d7..d8cec6435b 100644
--- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
+++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
@@ -349,9 +349,11 @@ void lcd_update(void)
349{ 349{
350 if (!display_on) 350 if (!display_on)
351 return; 351 return;
352 lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
353 352
354 lcd_busy = true; 353 lcd_busy = true;
354
355 lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
356
355 lcd_window_x(0, LCD_WIDTH - 1); 357 lcd_window_x(0, LCD_WIDTH - 1);
356 lcd_window_y(0, LCD_HEIGHT - 1); 358 lcd_window_y(0, LCD_HEIGHT - 1);
357 359
@@ -391,9 +393,10 @@ void lcd_update_rect(int x, int y, int width, int height)
391 if (y >= ymax) 393 if (y >= ymax)
392 return; /* nothing left to do */ 394 return; /* nothing left to do */
393 395
396 lcd_busy = true;
397
394 lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ); 398 lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
395 399
396 lcd_busy = true;
397 lcd_window_x(x, xmax); 400 lcd_window_x(x, xmax);
398 lcd_window_y(y, ymax); 401 lcd_window_y(y, ymax);
399 402