From 744cee6ec91648c4d6d12a8e18582e97fbd10f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 8 Dec 2016 14:53:01 +0100 Subject: [PATCH] Cleanup --- 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 1aae35c9..fe4af838 100644 --- a/src/internal.h +++ b/src/internal.h @@ -355,7 +355,7 @@ struct _GLFWwindow GLFWbool decorated; GLFWbool autoIconify; GLFWbool floating; - GLFWbool closed; + GLFWbool shouldClose; void* userPointer; GLFWvidmode videoMode; _GLFWmonitor* monitor; diff --git a/src/window.c b/src/window.c index d572ecfa..7075a2e9 100644 --- a/src/window.c +++ b/src/window.c @@ -106,7 +106,7 @@ void _glfwInputWindowDamage(_GLFWwindow* window) void _glfwInputWindowCloseRequest(_GLFWwindow* window) { - window->closed = GLFW_TRUE; + window->shouldClose = GLFW_TRUE; if (window->callbacks.close) window->callbacks.close((GLFWwindow*) window); @@ -418,7 +418,7 @@ GLFWAPI int glfwWindowShouldClose(GLFWwindow* handle) assert(window != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(0); - return window->closed; + return window->shouldClose; } GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* handle, int value) @@ -427,7 +427,7 @@ GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* handle, int value) assert(window != NULL); _GLFW_REQUIRE_INIT(); - window->closed = value; + window->shouldClose = value; } GLFWAPI void glfwSetWindowTitle(GLFWwindow* handle, const char* title)