From 6cec9a59d66f2a9a6322ecf8f5bcace45725d4c1 Mon Sep 17 00:00:00 2001 From: Dave Green <34277803+SoloByte@users.noreply.github.com> Date: Sat, 27 Jul 2024 20:54:09 +0200 Subject: [PATCH] Update rcore_desktop_glfw.c Comments updated. --- src/platforms/rcore_desktop_glfw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index 222eab30e..3b68f5247 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -195,7 +195,7 @@ void ToggleBorderlessWindowed(void) bool wasOnFullscreen = false; if (CORE.Window.fullscreen) { - //fullscreen already saves previous position so it does not need to be set here again + // fullscreen already saves the previous position so it does not need to be set here again ToggleFullscreen(); wasOnFullscreen = true; } @@ -593,7 +593,7 @@ void SetWindowTitle(const char *title) // Set window position on screen (windowed mode) void SetWindowPosition(int x, int y) { - //update core window position as well + // Update CORE.Window.position as well CORE.Window.position.x = x; CORE.Window.position.y = y; glfwSetWindowPos(platform.handle, x, y); @@ -1688,6 +1688,7 @@ static void WindowSizeCallback(GLFWwindow *window, int width, int height) } static void WindowPosCallback(GLFWwindow* window, int x, int y) { + // Set current window position CORE.Window.position.x = x; CORE.Window.position.y = y; }