diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-06-16 12:26:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-16 12:26:58 -0400 |
| commit | 0c2b8fd58787b1aa9e5ee250f885c2691aef492a (patch) | |
| tree | 130d51eb231b12ae8080050cff2d7beaf5cd1f03 /Source/Core/VideoCommon/OnScreenUI.cpp | |
| parent | c23cfe3c0836bd993126692bc19d60ca286262b1 (diff) | |
| parent | 9e1f5ed4b566df704b2041012944bbbd605a9592 (diff) | |
Merge pull request #12857 from LillyJadeKatrin/retroachievements-osd-tweaks
RetroAchievements On Screen Tweaks
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OnScreenUI.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index d3a3c7397d..61e59484e4 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -357,9 +357,9 @@ void OnScreenUI::DrawChallengesAndLeaderboards() float leaderboard_y = ImGui::GetIO().DisplaySize.y; if (!m_challenge_texture_map.empty()) { + ImGui::SetNextWindowSize(ImVec2(0, 0)); ImGui::SetNextWindowPos(ImVec2(ImGui::GetIO().DisplaySize.x, ImGui::GetIO().DisplaySize.y), 0, - ImVec2(1.0, 1.0)); - ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f)); + ImVec2(1, 1)); if (ImGui::Begin("Challenges", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings | @@ -370,9 +370,10 @@ void OnScreenUI::DrawChallengesAndLeaderboards() { ImGui::Image(texture.get(), ImVec2(static_cast<float>(texture->GetWidth()), static_cast<float>(texture->GetHeight()))); + ImGui::SameLine(); } - leaderboard_y -= ImGui::GetWindowHeight(); } + leaderboard_y -= ImGui::GetWindowHeight(); ImGui::End(); } |
