summaryrefslogtreecommitdiffstats
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)
{
if (!display_on)
return;
- lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
lcd_busy = true;
+
+ lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
+
lcd_window_x(0, LCD_WIDTH - 1);
lcd_window_y(0, LCD_HEIGHT - 1);
@@ -391,9 +393,10 @@ void lcd_update_rect(int x, int y, int width, int height)
if (y >= ymax)
return; /* nothing left to do */
+ lcd_busy = true;
+
lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
- lcd_busy = true;
lcd_window_x(x, xmax);
lcd_window_y(y, ymax);