Browse Source

Draw context menus on top of back button

kiwec 2 months ago
parent
commit
bb5f880f0f
2 changed files with 7 additions and 1 deletions
  1. 1 0
      src/App/Osu/Changelog.cpp
  2. 6 1
      src/App/Osu/OptionsMenu.cpp

+ 1 - 0
src/App/Osu/Changelog.cpp

@@ -30,6 +30,7 @@ Changelog::Changelog() : ScreenBackable() {
     latest.title =
         UString::format("%.2f (%s, %s)", convar->getConVarByName("osu_version")->getFloat(), __DATE__, __TIME__);
     latest.changes.push_back("- Fixed crash when osu! folder couldn't be found");
+    latest.changes.push_back("- Fixed skin selection menu being drawn behind back button");
     changelogs.push_back(latest);
 
     CHANGELOG v35_08;

+ 6 - 1
src/App/Osu/OptionsMenu.cpp

@@ -1434,8 +1434,13 @@ void OptionsMenu::draw(Graphics *g) {
         if(!isPlayingBeatmap) osu->getHUD()->drawDummy(g);
     } else if(m_playfieldBorderSizeSlider->isActive()) {
         osu->getHUD()->drawPlayfieldBorder(g, GameRules::getPlayfieldCenter(), GameRules::getPlayfieldSize(), 100);
-    } else
+    } else {
         ScreenBackable::draw(g);
+    }
+
+    // Re-drawing context menu to make sure it's drawn on top of the back button
+    // Context menu input still gets processed first, so this is fine
+    m_contextMenu->draw(g);
 
     if(m_cursorSizeSlider->getFloat() < 0.15f) engine->getMouse()->drawDebug(g);