mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07:00
Fix: Unbreak Wii U sliders (#1486)
* Unbreak Wii U sliders * #elseif -> #elif
This commit is contained in:
parent
941cf65227
commit
d53c8588e2
2 changed files with 9 additions and 3 deletions
|
@ -545,8 +545,10 @@ namespace GameMenuBar {
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
|
||||||
#if defined(__SWITCH__) || defined(__WIIU__)
|
#ifdef __SWITCH__
|
||||||
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
|
||||||
|
#elif __WIIU__
|
||||||
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2);
|
||||||
#else
|
#else
|
||||||
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1073,8 +1075,10 @@ namespace GameMenuBar {
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
|
||||||
#if defined(__SWITCH__) || defined(__WIIU__)
|
#ifdef __SWITCH__
|
||||||
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
|
||||||
|
#elif __WIIU__
|
||||||
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2);
|
||||||
#else
|
#else
|
||||||
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -322,8 +322,10 @@ namespace UIWidgets {
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);
|
||||||
}
|
}
|
||||||
if (PlusMinusButton) {
|
if (PlusMinusButton) {
|
||||||
#if defined(__SWITCH__) || defined(__WIIU__)
|
#ifdef __SWITCH__
|
||||||
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 110.0f);
|
||||||
|
#elif __WIIU__
|
||||||
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f * 2);
|
||||||
#else
|
#else
|
||||||
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
|
ImGui::PushItemWidth(ImGui::GetWindowSize().x - 79.0f);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue