From 0a8986dcb2082ae42811ffd32bb56a568ab94a52 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 24 Feb 2018 15:01:28 -0500 Subject: [PATCH] Qt: Fix opening in fullscreen (fixes #993) --- CHANGES | 1 + src/platform/qt/Window.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 1df07b350..23e1101e5 100644 --- a/CHANGES +++ b/CHANGES @@ -51,6 +51,7 @@ Bugfixes: - GB Timer: Minor accuracy improvements - GB Audio: Clock frame events on DIV - GBA: Fix SharkPort saves for EEPROM games + - Qt: Fix opening in fullscreen (fixes mgba.io/i/993) Misc: - GBA Timer: Use global cycles for timers - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index ba363a73c..094140f43 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -186,7 +186,9 @@ void Window::resizeFrame(const QSize& size) { m_screenWidget->setSizeHint(newSize); newSize -= m_screenWidget->size(); newSize += this->size(); - resize(newSize); + if (!isFullScreen()) { + resize(newSize); + } } void Window::setConfig(ConfigController* config) {