Browse Source

update windowPos (bug remaining somewhere)

pull/5582/head
CrackedPixel 3 days ago
parent
commit
0671639faa
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/platforms/rcore_desktop_rgfw.c

+ 5
- 1
src/platforms/rcore_desktop_rgfw.c View File

@ -886,7 +886,11 @@ Vector2 GetWindowPosition(void)
return (Vector2){ 0.0f, 0.0f };
}
return (Vector2){ (float)platform.window->x, (float)platform.window->y };
if (RGFW_window_getPosition(platform.window, &platform.window->x, &platform.window->y)) {
return (Vector2){ (float)platform.window->x, (float)platform.window->y };
}
return (Vector2){ 0.0f, 0.0f };
}
// Get window scale DPI factor for current monitor

Loading…
Cancel
Save