forked from len0rd/rockbox
ImageViewer: Fix crash when zooming on grayscale devices
lcd_update was called while the grayscale overlay was running
regression, apparently introduced by 0ceaff2
(only reproducible on target, not in Simulator)
Change-Id: Ife0ef359e19a03a6dc033070a11ae5843ee555e6
This commit is contained in:
parent
f1ddd6f014
commit
3adeae2026
1 changed files with 3 additions and 1 deletions
|
@ -968,11 +968,13 @@ static int load_and_show(char* filename, struct image_info *info)
|
|||
break;
|
||||
}
|
||||
|
||||
#ifdef USEGSLIB
|
||||
grey_show(false); /* switch off overlay */
|
||||
#endif
|
||||
rb->lcd_clear_display();
|
||||
}
|
||||
while (status > PLUGIN_OTHER);
|
||||
#ifdef USEGSLIB
|
||||
grey_show(false); /* switch off overlay */
|
||||
rb->lcd_update();
|
||||
#endif
|
||||
return status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue