From d5def558d39e739f69c3a1091eb989ad21573a1e Mon Sep 17 00:00:00 2001 From: Marcel Metz Date: Sat, 1 Oct 2011 01:48:42 -0400 Subject: [PATCH] Renamed struct member to match x11 naming. --- src/win32_platform.h | 2 +- src/win32_window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32_platform.h b/src/win32_platform.h index db5b82ae..6b61cb77 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -251,7 +251,7 @@ typedef struct _GLFWwindowWin32 // Various platform specific internal variables int desiredRefreshRate; // Desired vertical monitor refresh rate - GLboolean mouseMoved; + GLboolean cursorCentered; int oldMouseX, oldMouseY; } _GLFWwindowWin32; diff --git a/src/win32_window.c b/src/win32_window.c index dbeffe20..b9a6a6a3 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1763,7 +1763,7 @@ void _glfwPlatformPollEvents(void) window = _glfwLibrary.activeWindow; if (window) { - window->Win32.mouseMoved = GL_FALSE; + window->Win32.cursorCentered = GL_TRUE; window->Win32.oldMouseX = window->width / 2; window->Win32.oldMouseY = window->height / 2; }