Fixed function grouping.

This commit is contained in:
Camilla Berglund 2012-09-11 23:56:44 +02:00
parent 0e2b12be43
commit e15e92b583

View File

@ -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
//========================================================================