BGE: Cleaning up the vsync code a little.

This commit is contained in:
Mitchell Stokes
2013-08-26 08:14:52 +00:00
parent c0d67d26aa
commit f7388c1f2e
3 changed files with 3 additions and 3 deletions

View File

@@ -1385,7 +1385,7 @@ static PyObject *gPySetVsync(PyObject *, PyObject *args)
if (interval == VSYNC_ADAPTIVE)
interval = -1;
gp_Canvas->SetSwapInterval(!interval); // VSYNC_OFF == 1, VSYNC_ON == 0, so this works
gp_Canvas->SetSwapInterval((interval == VSYNC_ON) ? 1 : 0);
Py_RETURN_NONE;
}