added support for GetMonitorRefreshRate
This commit is contained in:
parent
8319537e3f
commit
2a12f960ad
|
|
@ -1320,6 +1320,12 @@ int GetMonitorRefreshRate(int monitor)
|
||||||
return vidmode->refreshRate;
|
return vidmode->refreshRate;
|
||||||
}
|
}
|
||||||
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
|
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
|
||||||
|
#endif
|
||||||
|
#if defined(PLATFORM_DRM)
|
||||||
|
if ((CORE.Window.connector) && (CORE.Window.modeIndex >= 0))
|
||||||
|
{
|
||||||
|
return CORE.Window.connector->modes[CORE.Window.modeIndex].vrefresh;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user