File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -944,17 +944,16 @@ bool runVideoOptionsMenu(void)
944944 case FRONTEND_VSYNC:
945945 case FRONTEND_VSYNC_R:
946946 {
947+ WzMainWindow::instance ()->setSwapInterval (!war_GetVsync ());
948+ war_SetVsync (WzMainWindow::instance ()->swapInterval () > 0 );
947949 if (war_GetVsync ())
948950 {
949- war_SetVsync (false );
950951 widgSetString (psWScreen, FRONTEND_VSYNC_R, _ (" Off" ));
951952 }
952953 else
953954 {
954- war_SetVsync (true );
955955 widgSetString (psWScreen, FRONTEND_VSYNC_R, _ (" On" ));
956956 }
957- WzMainWindow::instance ()->setSwapInterval (war_GetVsync ());
958957 break ;
959958 }
960959
Original file line number Diff line number Diff line change @@ -1294,11 +1294,12 @@ int main(int argc, char *argv[])
12941294 else
12951295 {
12961296 mainwindow.show ();
1297- mainwindow.setMinimumSize (w, h);
1297+ mainwindow.setMinimumSize (w, h);
12981298 mainwindow.setMaximumSize (w, h);
12991299 }
13001300
13011301 mainwindow.setSwapInterval (war_GetVsync ());
1302+ war_SetVsync (mainwindow.swapInterval () > 0 );
13021303
13031304 mainwindow.setReadyToPaint ();
13041305
You can’t perform that action at this time.
0 commit comments