mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-15 11:55:20 +00:00
REVIEWED: GetWindowPosition(), return internal value
This commit is contained in:
parent
6450a48c75
commit
890ca8d687
@ -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…
x
Reference in New Issue
Block a user