Browse Source

Fix: Unbreak Wii U sliders (#1486)

* Unbreak Wii U sliders

* #elseif -> #elif
pull/1499/head
aMannus 7 months ago committed by GitHub
parent
commit
d53c8588e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      soh/soh/GameMenuBar.cpp
  2. 4
      soh/soh/UIWidgets.cpp

8
soh/soh/GameMenuBar.cpp

@ -545,8 +545,10 @@ namespace GameMenuBar { @@ -545,8 +545,10 @@ namespace GameMenuBar {
}
ImGui::SameLine();
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
#if defined(__SWITCH__) || defined(__WIIU__)
#ifdef __SWITCH__
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
#elif __WIIU__
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2);
#else
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
#endif
@ -1073,8 +1075,10 @@ namespace GameMenuBar { @@ -1073,8 +1075,10 @@ namespace GameMenuBar {
}
ImGui::SameLine();
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
#if defined(__SWITCH__) || defined(__WIIU__)
#ifdef __SWITCH__
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
#elif __WIIU__
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2);
#else
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
#endif

4
soh/soh/UIWidgets.cpp

@ -322,8 +322,10 @@ namespace UIWidgets { @@ -322,8 +322,10 @@ namespace UIWidgets {
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
}
if (PlusMinusButton) {
#if defined(__SWITCH__) || defined(__WIIU__)
#ifdef __SWITCH__
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
#elif __WIIU__
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2);
#else
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
#endif

Loading…
Cancel
Save