Formatting.

This commit is contained in:
Camilla Berglund 2011-03-07 14:58:10 +01:00
parent 19be24afb7
commit fe1db15d31

View File

@ -1630,9 +1630,6 @@ void _glfwPlatformRefreshWindowParams(void)
else else
window->samples = 0; window->samples = 0;
// Default to refresh rate unknown (=0 according to GLFW spec)
window->refreshRate = 0;
// Retrieve refresh rate if possible // Retrieve refresh rate if possible
if (_glfwLibrary.X11.RandR.available) if (_glfwLibrary.X11.RandR.available)
{ {
@ -1653,6 +1650,11 @@ void _glfwPlatformRefreshWindowParams(void)
window->refreshRate = (int)(pixels_per_second/pixels_per_frame+0.5); window->refreshRate = (int)(pixels_per_second/pixels_per_frame+0.5);
#endif /*_GLFW_HAS_XF86VIDMODE*/ #endif /*_GLFW_HAS_XF86VIDMODE*/
} }
else
{
// Zero means unknown according to the GLFW spec
window->refreshRate = 0;
}
XFree(fbconfig); XFree(fbconfig);
} }