From 38aef53b0c49c9e1bd3dc76163fcaf8db004254c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 17 Jan 2013 20:31:16 +0100 Subject: [PATCH] Shortened window struct member. --- src/internal.h | 2 +- src/window.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal.h b/src/internal.h index 26439af0..3556095b 100644 --- a/src/internal.h +++ b/src/internal.h @@ -210,7 +210,7 @@ struct _GLFWwindow GLboolean iconified; GLboolean resizable; GLboolean visible; - GLboolean closeRequested; + GLboolean closed; void* userPointer; GLFWvidmode videoMode; _GLFWmonitor* monitor; diff --git a/src/window.c b/src/window.c index 44b10a41..c87f7e54 100644 --- a/src/window.c +++ b/src/window.c @@ -191,9 +191,9 @@ void _glfwInputWindowDamage(_GLFWwindow* window) void _glfwInputWindowCloseRequest(_GLFWwindow* window) { if (window->callbacks.close) - window->closeRequested = window->callbacks.close((GLFWwindow*) window); + window->closed = window->callbacks.close((GLFWwindow*) window); else - window->closeRequested = GL_TRUE; + window->closed = GL_TRUE; } @@ -691,7 +691,7 @@ GLFWAPI int glfwGetWindowParam(GLFWwindow* handle, int param) case GLFW_ICONIFIED: return window->iconified; case GLFW_SHOULD_CLOSE: - return window->closeRequested; + return window->closed; case GLFW_RESIZABLE: return window->resizable; case GLFW_VISIBLE: