mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Shortened window struct member.
This commit is contained in:
parent
bc150ac9c8
commit
38aef53b0c
|
@ -210,7 +210,7 @@ struct _GLFWwindow
|
||||||
GLboolean iconified;
|
GLboolean iconified;
|
||||||
GLboolean resizable;
|
GLboolean resizable;
|
||||||
GLboolean visible;
|
GLboolean visible;
|
||||||
GLboolean closeRequested;
|
GLboolean closed;
|
||||||
void* userPointer;
|
void* userPointer;
|
||||||
GLFWvidmode videoMode;
|
GLFWvidmode videoMode;
|
||||||
_GLFWmonitor* monitor;
|
_GLFWmonitor* monitor;
|
||||||
|
|
|
@ -191,9 +191,9 @@ void _glfwInputWindowDamage(_GLFWwindow* window)
|
||||||
void _glfwInputWindowCloseRequest(_GLFWwindow* window)
|
void _glfwInputWindowCloseRequest(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
if (window->callbacks.close)
|
if (window->callbacks.close)
|
||||||
window->closeRequested = window->callbacks.close((GLFWwindow*) window);
|
window->closed = window->callbacks.close((GLFWwindow*) window);
|
||||||
else
|
else
|
||||||
window->closeRequested = GL_TRUE;
|
window->closed = GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -691,7 +691,7 @@ GLFWAPI int glfwGetWindowParam(GLFWwindow* handle, int param)
|
||||||
case GLFW_ICONIFIED:
|
case GLFW_ICONIFIED:
|
||||||
return window->iconified;
|
return window->iconified;
|
||||||
case GLFW_SHOULD_CLOSE:
|
case GLFW_SHOULD_CLOSE:
|
||||||
return window->closeRequested;
|
return window->closed;
|
||||||
case GLFW_RESIZABLE:
|
case GLFW_RESIZABLE:
|
||||||
return window->resizable;
|
return window->resizable;
|
||||||
case GLFW_VISIBLE:
|
case GLFW_VISIBLE:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user