From fe1db15d31712e8eebcbef64297bf1dae64a34ba Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2011 14:58:10 +0100 Subject: [PATCH] Formatting. --- src/x11/x11_window.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/x11/x11_window.c b/src/x11/x11_window.c index 3ecb15a1..051be402 100644 --- a/src/x11/x11_window.c +++ b/src/x11/x11_window.c @@ -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); }