From 023dbbc967bb102ec12d9076e35b8d20eba8a10e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 19 Oct 2013 19:46:30 -0700 Subject: [PATCH] iOS buildfix. --- UI/GamepadEmu.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/UI/GamepadEmu.cpp b/UI/GamepadEmu.cpp index abc7e5f78c..7b7f768fc4 100644 --- a/UI/GamepadEmu.cpp +++ b/UI/GamepadEmu.cpp @@ -429,13 +429,14 @@ UI::ViewGroup *CreatePadLayout(bool *pause) { const int halfW = dp_xres / 2; -#if USE_PAUSE_BUTTON - root->Add(new BoolButton(pause, I_ROUND, I_ARROW, scale, new AnchorLayoutParams(halfW, 20, NONE, NONE, true)))->SetAngle(90); -#endif - if (g_Config.bShowTouchControls) { float scale = g_Config.fButtonScale; + +#if USE_PAUSE_BUTTON + root->Add(new BoolButton(pause, I_ROUND, I_ARROW, scale, new AnchorLayoutParams(halfW, 20, NONE, NONE, true)))->SetAngle(90); +#endif + root->Add(new PSPButton(CTRL_CIRCLE, I_ROUND, I_CIRCLE, scale, new AnchorLayoutParams(Action_circle_button_X, Action_circle_button_Y, NONE, NONE, true))); root->Add(new PSPButton(CTRL_CROSS, I_ROUND, I_CROSS, scale, new AnchorLayoutParams(Action_cross_button_X, Action_cross_button_Y, NONE, NONE, true))); root->Add(new PSPButton(CTRL_TRIANGLE, I_ROUND, I_TRIANGLE, scale, new AnchorLayoutParams(Action_triangle_button_X, Action_triangle_button_Y, NONE, NONE, true)));