瀏覽代碼

REVIEWED: `GetWindowPosition()`, return internal value

pull/5442/head
Ray 1 月之前
父節點
當前提交
890ca8d687
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. +1
    -6
      src/platforms/rcore_desktop_glfw.c

+ 1
- 6
src/platforms/rcore_desktop_glfw.c 查看文件

@ -1021,12 +1021,7 @@ const char *GetMonitorName(int monitor)
// Get window position XY on monitor
Vector2 GetWindowPosition(void)
{
int x = 0;
int y = 0;
glfwGetWindowPos(platform.handle, &x, &y);
return (Vector2){ (float)x, (float)y };
return (Vector2){ (float)CORE.Window.position.x, (float)CORE.Window.position.y };
}
// Get window scale DPI factor for current monitor

Loading…
取消
儲存