mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Sansa Fuze/e200v2: protect lcd a little better against concurrent access
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22838 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
340f32356a
commit
66d5bd7cf8
2 changed files with 10 additions and 4 deletions
|
@ -502,9 +502,10 @@ void lcd_update(void)
|
|||
if (!display_on)
|
||||
return;
|
||||
|
||||
lcd_busy = true;
|
||||
|
||||
lcd_write_reg(R_ENTRY_MODE, r_entry_mode);
|
||||
|
||||
lcd_busy = true;
|
||||
/* Set start position and window */
|
||||
lcd_window(0, 0, LCD_WIDTH-1, LCD_HEIGHT-1);
|
||||
|
||||
|
@ -544,8 +545,10 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
if (y >= ymax)
|
||||
return; /* nothing left to do */
|
||||
|
||||
lcd_write_reg(R_ENTRY_MODE, r_entry_mode);
|
||||
lcd_busy = true;
|
||||
|
||||
lcd_write_reg(R_ENTRY_MODE, r_entry_mode);
|
||||
|
||||
lcd_window(x, y, xmax, ymax);
|
||||
lcd_write_cmd(R_WRITE_DATA_2_GRAM);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue