EVENTRECORDER: Update screen resolution in GUI before showing anything

This properly fix bug encountered in 5af11925809267eee1abd5ddf251530f6f5f5572
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);