diff options
| author | aMannus <mannusmenting@gmail.com> | 2022-09-15 22:48:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-15 16:48:51 -0400 |
| commit | d53c8588e2f4e9b6c277694fb703db8ec5a2a275 (patch) | |
| tree | e14ffbefc7f7c2fc263e902e20d41f2816884a2f | |
| parent | 941cf65227eb780229f1ffd1e039c8fb18b3149d (diff) | |
Fix: Unbreak Wii U sliders (#1486)
* Unbreak Wii U sliders
* #elseif -> #elif
| -rw-r--r-- | soh/soh/GameMenuBar.cpp | 8 | ||||
| -rw-r--r-- | soh/soh/UIWidgets.cpp | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp index 09db46434..2c688228f 100644 --- a/soh/soh/GameMenuBar.cpp +++ b/soh/soh/GameMenuBar.cpp @@ -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 { } 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 diff --git a/soh/soh/UIWidgets.cpp b/soh/soh/UIWidgets.cpp index b6ee0c2de..53a3b8b01 100644 --- a/soh/soh/UIWidgets.cpp +++ b/soh/soh/UIWidgets.cpp @@ -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 |
