Kaynağa Gözat

Check if video mode is valid and rename to match with other methods (#5235)

pull/5240/head
Maicon Santana 3 ay önce
işlemeyi yapan: GitHub
ebeveyn
işleme
de50402dd5
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: B5690EEEBB952194
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. +5
    -2
      src/platforms/rcore_desktop_glfw.c

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

@ -959,8 +959,11 @@ int GetMonitorRefreshRate(int monitor)
if ((monitor >= 0) && (monitor < monitorCount))
{
const GLFWvidmode *vidmode = glfwGetVideoMode(monitors[monitor]);
refresh = vidmode->refreshRate;
const GLFWvidmode *mode = glfwGetVideoMode(monitors[monitor]);
if (mode) refresh = mode->refreshRate;
else TRACELOG(LOG_WARNING, "GLFW: Failed to find video mode for selected monitor");
}
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");

Yükleniyor…
İptal
Kaydet