Make the vsync button actually work

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-03-20 18:52:59 +00:00
parent b55cafda36
commit 6f1d2cf904

View File

@@ -338,7 +338,12 @@ void OptionsScreenVideo::eventCallback(Widget* widget, const std::string& name,
updateTooltip();
}
else if (name == "vsync")
{
GUIEngine::CheckBoxWidget* vsync = this->getWidget<GUIEngine::CheckBoxWidget>("vsync");
assert( vsync != NULL );
UserConfigParams::m_vsync = vsync->getState();
}
} // eventCallback