diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-08-26 12:14:52 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-08-26 12:14:52 +0400 |
commit | f7388c1f2e7a0a23b40a4a2f8b1e2bfbca17e1b9 (patch) | |
tree | 941bca5e4ce53b59f758d944c9e2eb399c5f4278 /source/gameengine/Ketsji/KX_PythonInit.cpp | |
parent | c0d67d26aac0c1b5acccdbdd3111c3b76ad7b523 (diff) |
BGE: Cleaning up the vsync code a little.
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 74816a5ad09..29f28b7cc24 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -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; } |