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
|
// 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user