Procházet zdrojové kódy

update windowPos (bug remaining somewhere)

pull/5582/head
CrackedPixel před 1 týdnem
rodič
revize
0671639faa
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. +5
    -1
      src/platforms/rcore_desktop_rgfw.c

+ 5
- 1
src/platforms/rcore_desktop_rgfw.c Zobrazit soubor

@ -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

Načítá se…
Zrušit
Uložit