mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
Don't save the window size to the config if in full screen (#933)
This commit is contained in:

committed by
GitHub

parent
4a28068295
commit
b75b3f69b7
@ -1474,8 +1474,11 @@ void MainWindow::resizeEvent(QResizeEvent* event)
|
|||||||
int w = event->size().width();
|
int w = event->size().width();
|
||||||
int h = event->size().height();
|
int h = event->size().height();
|
||||||
|
|
||||||
Config::WindowWidth = w;
|
if (mainWindow != nullptr && !mainWindow->isFullScreen())
|
||||||
Config::WindowHeight = h;
|
{
|
||||||
|
Config::WindowWidth = w;
|
||||||
|
Config::WindowHeight = h;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: detect when the window gets maximized!
|
// TODO: detect when the window gets maximized!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user