From e15e92b5838b06dc2835a7bff13292b0cc93a66f Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 11 Sep 2012 23:56:44 +0200 Subject: [PATCH] Fixed function grouping. --- src/window.c | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/window.c b/src/window.c index d4f063f5..b46065a7 100644 --- a/src/window.c +++ b/src/window.c @@ -645,6 +645,30 @@ GLFWAPI void glfwIconifyWindow(GLFWwindow handle) } +//======================================================================== +// Window un-iconification +//======================================================================== + +GLFWAPI void glfwRestoreWindow(GLFWwindow handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + + if (!_glfwInitialized) + { + _glfwSetError(GLFW_NOT_INITIALIZED, NULL); + return; + } + + if (!window->iconified) + return; + + _glfwPlatformRestoreWindow(window); + + if (window->mode == GLFW_FULLSCREEN) + _glfwPlatformRefreshWindowParams(window); +} + + //======================================================================== // Window show //======================================================================== @@ -687,30 +711,6 @@ GLFWAPI void glfwHideWindow(GLFWwindow handle) } -//======================================================================== -// Window un-iconification -//======================================================================== - -GLFWAPI void glfwRestoreWindow(GLFWwindow handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - if (!_glfwInitialized) - { - _glfwSetError(GLFW_NOT_INITIALIZED, NULL); - return; - } - - if (!window->iconified) - return; - - _glfwPlatformRestoreWindow(window); - - if (window->mode == GLFW_FULLSCREEN) - _glfwPlatformRefreshWindowParams(window); -} - - //======================================================================== // Get window parameter //========================================================================