diff --git a/gfx.c b/gfx.c index ef65286799..368aaa39b0 100644 --- a/gfx.c +++ b/gfx.c @@ -1974,8 +1974,6 @@ bool ChangeResInGame(int w, int h) if ((_screen.width != w || _screen.height != h) && !_video_driver->change_resolution(w, h)) return false; - _cur_resolution[0] = w; - _cur_resolution[1] = h; return true; } diff --git a/main_gui.c b/main_gui.c index 86fec3d1e5..88bceae173 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2478,6 +2478,8 @@ void ShowVitalWindows(void) void GameSizeChanged(void) { + _cur_resolution[0] = _screen.width; + _cur_resolution[1] = _screen.height; RelocateAllWindows(_screen.width, _screen.height); ScreenSizeChanged(); MarkWholeScreenDirty();