mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-23 07:39:18 -05:00
REVIEWED: GetWindowPosition(), return internal value
This commit is contained in:
@ -1021,12 +1021,7 @@ const char *GetMonitorName(int monitor)
|
|||||||
// Get window position XY on monitor
|
// Get window position XY on monitor
|
||||||
Vector2 GetWindowPosition(void)
|
Vector2 GetWindowPosition(void)
|
||||||
{
|
{
|
||||||
int x = 0;
|
return (Vector2){ (float)CORE.Window.position.x, (float)CORE.Window.position.y };
|
||||||
int y = 0;
|
|
||||||
|
|
||||||
glfwGetWindowPos(platform.handle, &x, &y);
|
|
||||||
|
|
||||||
return (Vector2){ (float)x, (float)y };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get window scale DPI factor for current monitor
|
// Get window scale DPI factor for current monitor
|
||||||
|
|||||||
Reference in New Issue
Block a user