added support for GetMonitorRefreshRate

This commit is contained in:
kernelkinetic 2020-09-21 16:30:42 +02:00
parent 8319537e3f
commit 2a12f960ad

View File

@ -1320,6 +1320,12 @@ int GetMonitorRefreshRate(int monitor)
return vidmode->refreshRate;
}
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
return 0;
}