Kaynağa Gözat

update windowPos (bug remaining somewhere)

pull/5582/head
CrackedPixel 1 hafta önce
ebeveyn
işleme
0671639faa
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      src/platforms/rcore_desktop_rgfw.c

+ 5
- 1
src/platforms/rcore_desktop_rgfw.c Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet