mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 12:39:57 +00:00
Some PRINTFs in gui_flip_screen() to catch the lost screen bug.
This commit is contained in:
parent
22b51d20d7
commit
f24dc119ff
@ -538,11 +538,16 @@ void gui_flip_screen()
|
||||
// This is a strange Allegro bug where the "screen" pointer is lost,
|
||||
// so we have to reconstruct it changing the gfx mode again
|
||||
else if (screen == NULL) {
|
||||
PRINTF("Gfx mode lost, trying to restore gfx mode...\n");
|
||||
|
||||
if (!lastWorkingGfxMode.setGfxMode()) {
|
||||
PRINTF("Fatal error\n");
|
||||
set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
|
||||
user_printf(_("FATAL ERROR: Unable to restore the old graphics mode!\n"));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
PRINTF("Successfully restored\n");
|
||||
}
|
||||
else
|
||||
lastWorkingGfxMode.updateWithCurrentMode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user