From 84b2787f0dc05afab278cb415dfd3160df8e1752 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 16 Aug 2012 19:11:31 +0200 Subject: [PATCH] Formatting. --- src/x11_monitor.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index e36bbdc5..bf2b8155 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -34,18 +34,14 @@ #include -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - //======================================================================== // Create a monitor struct from the specified information //======================================================================== #if defined (_GLFW_HAS_XRANDR) -_GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, - XRROutputInfo* outputInfo, - XRRCrtcInfo* crtcInfo) +static _GLFWmonitor** createMonitor(_GLFWmonitor** current, + XRROutputInfo* outputInfo, + XRRCrtcInfo* crtcInfo) { *current = malloc(sizeof(_GLFWmonitor)); memset(*current, 0, sizeof(_GLFWmonitor)); @@ -64,6 +60,10 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, #endif /*_GLFW_HAS_XRANDR*/ +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + //======================================================================== // Destroy a monitor struct //======================================================================== @@ -130,7 +130,7 @@ _GLFWmonitor* _glfwCreateMonitors(void) } } - monitor = _glfwCreateMonitor(monitor, outputInfo, crtcInfo); + monitor = createMonitor(monitor, outputInfo, crtcInfo); // Freeing of the outputInfo is done in _glfwDestroyMonitor XRRFreeCrtcInfo(crtcInfo);