Skip to content

Commit

Permalink
Fix off by one
Browse files Browse the repository at this point in the history
  • Loading branch information
iota97 committed Nov 6, 2020
1 parent 225734c commit 6cf261a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Qt/mainwindow.cpp
Expand Up @@ -477,6 +477,7 @@ void MainWindow::SetWindowScale(int zoom) {
#else
resize(g_Config.iWindowWidth, g_Config.iWindowHeight);
#endif
updateMenus();
}

void MainWindow::SetGameTitle(QString text)
Expand Down Expand Up @@ -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 *)),
Expand Down

0 comments on commit 6cf261a

Please sign in to comment.