EVENTRECORDER: Update screen resolution in GUI before showing anything

This properly fix bug encountered in 5af1192580
Now the UI is notified size has changed and properly reiszes overlay
surface.
This commit is contained in:
Le Philousophe 2021-07-29 23:21:01 +02:00
parent 68a327ecb1
commit ef73bdac50

View file

@ -606,6 +606,7 @@ void EventRecorder::preDrawOverlayGui() {
RecordMode oldMode = _recordMode;
_recordMode = kPassthrough;
g_system->showOverlay();
g_gui.checkScreenChange();
g_gui.theme()->clearAll();
g_gui.theme()->drawToBackbuffer();
_controlPanel->drawDialog(kDrawLayerBackground);