mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 18: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 h = event->size().height();
|
||||
|
||||
Config::WindowWidth = w;
|
||||
Config::WindowHeight = h;
|
||||
if (mainWindow != nullptr && !mainWindow->isFullScreen())
|
||||
{
|
||||
Config::WindowWidth = w;
|
||||
Config::WindowHeight = h;
|
||||
}
|
||||
|
||||
// TODO: detect when the window gets maximized!
|
||||
}
|
||||
|
Reference in New Issue
Block a user