Qt: Don't save window size when entering fullscreen

This commit is contained in:
Jeffrey Pfau 2015-06-13 12:38:42 -07:00
parent f1396aa844
commit e9d8f1ca46
2 changed files with 5 additions and 2 deletions

View File

@ -71,6 +71,7 @@ Misc:
- 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:

View File

@ -390,8 +390,10 @@ void Window::keyReleaseEvent(QKeyEvent* event) {
}
void Window::resizeEvent(QResizeEvent*) {
if (!isFullScreen()) {
m_config->setOption("height", m_screenWidget->height());
m_config->setOption("width", m_screenWidget->width());
}
m_config->setOption("fullscreen", isFullScreen());
}