Formatting.
This commit is contained in:
parent
19be24afb7
commit
fe1db15d31
@ -1630,9 +1630,6 @@ void _glfwPlatformRefreshWindowParams(void)
|
||||
else
|
||||
window->samples = 0;
|
||||
|
||||
// Default to refresh rate unknown (=0 according to GLFW spec)
|
||||
window->refreshRate = 0;
|
||||
|
||||
// Retrieve refresh rate if possible
|
||||
if (_glfwLibrary.X11.RandR.available)
|
||||
{
|
||||
@ -1653,6 +1650,11 @@ void _glfwPlatformRefreshWindowParams(void)
|
||||
window->refreshRate = (int)(pixels_per_second/pixels_per_frame+0.5);
|
||||
#endif /*_GLFW_HAS_XF86VIDMODE*/
|
||||
}
|
||||
else
|
||||
{
|
||||
// Zero means unknown according to the GLFW spec
|
||||
window->refreshRate = 0;
|
||||
}
|
||||
|
||||
XFree(fbconfig);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user