Always show actual vsync setting in the interface instead of desired setting.
parent
d71934c8e5
commit
195159406d
|
@ -944,17 +944,16 @@ bool runVideoOptionsMenu(void)
|
|||
case FRONTEND_VSYNC:
|
||||
case FRONTEND_VSYNC_R:
|
||||
{
|
||||
WzMainWindow::instance()->setSwapInterval(!war_GetVsync());
|
||||
war_SetVsync(WzMainWindow::instance()->swapInterval() > 0);
|
||||
if (war_GetVsync())
|
||||
{
|
||||
war_SetVsync(false);
|
||||
widgSetString(psWScreen, FRONTEND_VSYNC_R, _("Off"));
|
||||
}
|
||||
else
|
||||
{
|
||||
war_SetVsync(true);
|
||||
widgSetString(psWScreen, FRONTEND_VSYNC_R, _("On"));
|
||||
}
|
||||
WzMainWindow::instance()->setSwapInterval(war_GetVsync());
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -1294,11 +1294,12 @@ int main(int argc, char *argv[])
|
|||
else
|
||||
{
|
||||
mainwindow.show();
|
||||
mainwindow.setMinimumSize(w, h);
|
||||
mainwindow.setMinimumSize(w, h);
|
||||
mainwindow.setMaximumSize(w, h);
|
||||
}
|
||||
|
||||
mainwindow.setSwapInterval(war_GetVsync());
|
||||
war_SetVsync(mainwindow.swapInterval() > 0);
|
||||
|
||||
mainwindow.setReadyToPaint();
|
||||
|
||||
|
|
Loading…
Reference in New Issue