mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 07:05:49 +00:00
Clarify cursor position variable names
This commit is contained in:
+5
-3
@@ -224,10 +224,12 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
||||
int width, height;
|
||||
_glfwPlatformGetWindowSize(window, &width, &height);
|
||||
|
||||
window->cursorPosX = width / 2;
|
||||
window->cursorPosY = height / 2;
|
||||
window->virtualCursorPosX = width / 2;
|
||||
window->virtualCursorPosY = height / 2;
|
||||
|
||||
_glfwPlatformSetCursorPos(window, window->cursorPosX, window->cursorPosY);
|
||||
_glfwPlatformSetCursorPos(window,
|
||||
window->virtualCursorPosX,
|
||||
window->virtualCursorPosY);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user