mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
Replace GL booleans with public macros
This commit is contained in:
@@ -46,9 +46,9 @@
|
||||
static double cursor_x;
|
||||
static double cursor_y;
|
||||
static int swap_interval = 1;
|
||||
static GLboolean wait_events = GL_FALSE;
|
||||
static GLboolean animate_cursor = GL_FALSE;
|
||||
static GLboolean track_cursor = GL_FALSE;
|
||||
static int wait_events = GLFW_FALSE;
|
||||
static int animate_cursor = GLFW_FALSE;
|
||||
static int track_cursor = GLFW_FALSE;
|
||||
static GLFWcursor* standard_cursors[6];
|
||||
|
||||
static void error_callback(int error, const char* description)
|
||||
@@ -122,7 +122,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
|
||||
{
|
||||
if (glfwGetInputMode(window, GLFW_CURSOR) != GLFW_CURSOR_DISABLED)
|
||||
{
|
||||
glfwSetWindowShouldClose(window, GL_TRUE);
|
||||
glfwSetWindowShouldClose(window, GLFW_TRUE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user