mirror of
https://github.com/raysan5/raylib.git
synced 2026-08-26 09:01:35 +00:00
REVIEWED: GetWindowPosition() #5932
This commit is contained in:
@@ -1030,6 +1030,8 @@ const char *GetMonitorName(int monitor)
|
||||
// Get window position XY on monitor
|
||||
Vector2 GetWindowPosition(void)
|
||||
{
|
||||
glfwGetWindowPos(platform.handle, &CORE.Window.position.x, &CORE.Window.position.y);
|
||||
|
||||
return (Vector2){ (float)CORE.Window.position.x, (float)CORE.Window.position.y };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user