mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-26 00:59:16 -05:00
GetCurrentMonitor() - check window center instead of top-left corner (#3468)
This commit is contained in:
committed by
GitHub
parent
9a687e3153
commit
2f6b2897fe
@ -755,6 +755,8 @@ int GetCurrentMonitor(void)
|
|||||||
int y = 0;
|
int y = 0;
|
||||||
|
|
||||||
glfwGetWindowPos(platform.handle, &x, &y);
|
glfwGetWindowPos(platform.handle, &x, &y);
|
||||||
|
x += (int)CORE.Window.screen.width / 2;
|
||||||
|
y += (int)CORE.Window.screen.height / 2;
|
||||||
|
|
||||||
for (int i = 0; i < monitorCount; i++)
|
for (int i = 0; i < monitorCount; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user