diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp index f1c044f2e..09db46434 100644 --- a/soh/soh/GameMenuBar.cpp +++ b/soh/soh/GameMenuBar.cpp @@ -545,7 +545,11 @@ namespace GameMenuBar { } ImGui::SameLine(); ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f); + #if defined(__SWITCH__) || defined(__WIIU__) + ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f); + #else ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f); + #endif if (ImGui::SliderInt("##ExtraLatencyThreshold", &val, 0, 360, "", ImGuiSliderFlags_AlwaysClamp)) { CVar_SetS32(cvar, val); @@ -1069,8 +1073,8 @@ namespace GameMenuBar { } ImGui::SameLine(); ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f); - #ifdef __WIIU__ - ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2); + #if defined(__SWITCH__) || defined(__WIIU__) + ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f); #else ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f); #endif diff --git a/soh/soh/UIWidgets.cpp b/soh/soh/UIWidgets.cpp index 148a820c2..b6ee0c2de 100644 --- a/soh/soh/UIWidgets.cpp +++ b/soh/soh/UIWidgets.cpp @@ -322,11 +322,11 @@ namespace UIWidgets { ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f); } if (PlusMinusButton) { - #ifdef __WIIU__ - ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2); - #else + #if defined(__SWITCH__) || defined(__WIIU__) + ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f); + #else ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f); - #endif + #endif } if (ImGui::SliderFloat(id, &val, min, max, format)) {