fixing things

This commit is contained in:
Kbz-8
2025-01-07 01:20:26 +01:00
parent aa345c7e38
commit 54b45824b3
21 changed files with 242 additions and 199 deletions

View File

@@ -50,6 +50,13 @@ namespace mlx
void Application::SetFPSCap(std::uint32_t fps) noexcept
{
if(fps == 0)
{
SDL_DisplayMode mode;
if(!SDL_GetCurrentDisplayMode(1, &mode))
return;
fps = mode.refresh_rate;
}
m_fps.SetMaxFPS(fps);
}