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
|
||||
- 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:
|
||||
|
|
|
@ -390,8 +390,10 @@ void Window::keyReleaseEvent(QKeyEvent* event) {
|
|||
}
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue