Fix FS#10486 - "fuze screen not drawn correctly on backlight turn-on if playlist ends while the backlight is off" by adding a lcd_update() to lcd_enable() as other targets do. Remove the delay as it seems unneeded nowadays.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22244 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-08-10 21:38:10 +00:00
parent 553f95806f
commit 653db606cf

View file

@ -175,7 +175,6 @@ void lcd_enable(bool on)
return; /* nothing to do */
if(on)
{
int delay = 0x200000;
lcd_write_reg(0, 1);
lcd_write_reg(0x10, 0);
lcd_write_reg(0x11, 0x3704);
@ -189,8 +188,9 @@ void lcd_enable(bool on)
display_on = true;
/* a bit of delay before returning to
* avoid irritating flash on backlight on */
while(delay--);
lcd_update(); /* Resync display */
lcd_activation_call_hook();
sleep(0);
}
else