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:
Christian Soffke 2021-12-13 23:20:42 +01:00 committed by Aidan MacDonald
parent f1ddd6f014
commit 3adeae2026

View file

@ -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;