From 62685b6145dc4f8230fecc7ae6a38197eaca4300 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 22 Oct 2013 16:18:43 +0200 Subject: [PATCH] Fix a bug where we would push two gamepausescreens in some circumstances. + a cosmetic fix. --- UI/EmuScreen.cpp | 2 +- UI/MainScreen.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index 6acb55cf97..bf4366fc5f 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -233,7 +233,7 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) { break; case VIRTKEY_PAUSE: - screenManager()->push(new GamePauseScreen(gamePath_)); + pauseTrigger_ = true; break; case VIRTKEY_AXIS_X_MIN: diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 014e23d634..a69f93a119 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -545,6 +545,7 @@ void MainScreen::CreateViews() { ViewGroup *rightColumn = new ScrollView(ORIENT_VERTICAL); LinearLayout *rightColumnItems = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)); + rightColumnItems->SetSpacing(0.0f); rightColumn->Add(rightColumnItems); char versionString[256];