From 2c10bca615a7dbbcf2af2875ce591665b5765090 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Wed, 15 Feb 2023 11:06:19 +0100 Subject: [PATCH] Fix compilation against latest libultraship (#2479) --- libultraship | 2 +- soh/soh/GameMenuBar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libultraship b/libultraship index 1fc9f3795..8cbebc420 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit 1fc9f3795405f6263c3adb3ab8f7d5f0b24b6e75 +Subproject commit 8cbebc4205f4003ddc9020fa5d63e0030dc15939 diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp index c79c2d85b..5e6c171d8 100644 --- a/soh/soh/GameMenuBar.cpp +++ b/soh/soh/GameMenuBar.cpp @@ -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);