Fix compilation against latest libultraship (#2479)

This commit is contained in:
David Chavez 2023-02-15 11:06:19 +01:00 committed by GitHub
commit 2c10bca615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -949,7 +949,7 @@ namespace GameMenuBar {
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(6.0f, 4.0f));
if (ImGui::Button("Match Refresh Rate"))
{
int hz = roundf(SohImGui::WindowRefreshRate());
int hz = Ship::Window::GetInstance()->GetCurrentRefreshRate();
if (hz >= 20 && hz <= 360)
{
CVarSetInteger(fps_cvar, hz);