all repos — mgba @ e9d8f1ca46a70ab63f1e5311942408610166d30b

mGBA Game Boy Advance Emulator

Qt: Don't save window size when entering fullscreen
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Jun 2015 12:38:42 -0700
commit

e9d8f1ca46a70ab63f1e5311942408610166d30b

parent

f1396aa844219e0c13e77fc51fc479a800f2d273

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -71,6 +71,7 @@ - SDL: Properly check for initialization

- SDL: Clean up initialization functions - All: Threads are now named - Qt: Rename "Fullscreen" to "Toggle fullscreen" + - Qt: Don't save window size when entering fullscreen 0.2.1: (2015-05-13) Bugfixes:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -390,8 +390,10 @@ event->accept();

} void Window::resizeEvent(QResizeEvent*) { - m_config->setOption("height", m_screenWidget->height()); - m_config->setOption("width", m_screenWidget->width()); + if (!isFullScreen()) { + m_config->setOption("height", m_screenWidget->height()); + m_config->setOption("width", m_screenWidget->width()); + } m_config->setOption("fullscreen", isFullScreen()); }