Render screen on window restored
It should not be necessary, since screen_render() is called just after on SDL_WINDOWEVENT_EXPOSED, but in practice the window content might not be correctly displayed on restored if a rotation occurred while minimized. Note that calling screen_render() twice in a row on SDL_WINDOWEVENT_EXPOSED also "fixes" the issue.
This commit is contained in:
parent
cd2894570d
commit
7343b233e4
1 changed files with 1 additions and 0 deletions
|
@ -726,6 +726,7 @@ screen_handle_event(struct screen *screen, SDL_Event *event) {
|
||||||
}
|
}
|
||||||
screen->maximized = false;
|
screen->maximized = false;
|
||||||
apply_pending_resize(screen);
|
apply_pending_resize(screen);
|
||||||
|
screen_render(screen, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue