mirror of https://github.com/mgba-emu/mgba.git
Qt: Don't save window size when entering fullscreen
This commit is contained in:
parent
f1396aa844
commit
e9d8f1ca46
1
CHANGES
1
CHANGES
|
@ -71,6 +71,7 @@ Misc:
|
||||||
- SDL: Clean up initialization functions
|
- SDL: Clean up initialization functions
|
||||||
- All: Threads are now named
|
- All: Threads are now named
|
||||||
- Qt: Rename "Fullscreen" to "Toggle fullscreen"
|
- Qt: Rename "Fullscreen" to "Toggle fullscreen"
|
||||||
|
- Qt: Don't save window size when entering fullscreen
|
||||||
|
|
||||||
0.2.1: (2015-05-13)
|
0.2.1: (2015-05-13)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -390,8 +390,10 @@ void Window::keyReleaseEvent(QKeyEvent* event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::resizeEvent(QResizeEvent*) {
|
void Window::resizeEvent(QResizeEvent*) {
|
||||||
m_config->setOption("height", m_screenWidget->height());
|
if (!isFullScreen()) {
|
||||||
m_config->setOption("width", m_screenWidget->width());
|
m_config->setOption("height", m_screenWidget->height());
|
||||||
|
m_config->setOption("width", m_screenWidget->width());
|
||||||
|
}
|
||||||
m_config->setOption("fullscreen", isFullScreen());
|
m_config->setOption("fullscreen", isFullScreen());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue