Fix off by one

This commit is contained in:
iota97 2020-11-06 10:53:57 +01:00
parent 225734c0b3
commit 6cf261a0f7

View file

@ -477,6 +477,7 @@ void MainWindow::SetWindowScale(int zoom) {
#else
resize(g_Config.iWindowWidth, g_Config.iWindowHeight);
#endif
updateMenus();
}
void MainWindow::SetGameTitle(QString text)
@ -603,7 +604,7 @@ void MainWindow::createMenus()
MenuTree* windowMenu = new MenuTree(this, gameSettingsMenu, QT_TR_NOOP("&Window size"));
windowGroup = new MenuActionGroup(this, windowMenu, SLOT(windowGroup_triggered(QAction *)),
QStringList() << "&1x" << "&2x" << "&3x" << "&4x" << "&5x" << "&6x" << "&7x" << "&8x" << "&9x" << "1&0x",
QList<int>() << 0 << 1 << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9);
QList<int>() << 1 << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9 << 10);
MenuTree* renderingModeMenu = new MenuTree(this, gameSettingsMenu, QT_TR_NOOP("Rendering m&ode"));
renderingModeGroup = new MenuActionGroup(this, renderingModeMenu, SLOT(renderingModeGroup_triggered(QAction *)),