aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frontend/qt_sdl/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 527a507..a3b0249 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1474,8 +1474,11 @@ void MainWindow::resizeEvent(QResizeEvent* event)
int w = event->size().width();
int h = event->size().height();
- Config::WindowWidth = w;
- Config::WindowHeight = h;
+ if (mainWindow != nullptr && !mainWindow->isFullScreen())
+ {
+ Config::WindowWidth = w;
+ Config::WindowHeight = h;
+ }
// TODO: detect when the window gets maximized!
}