Possibly fix weird control visibility issue #7417 although I don't quite get it..

This commit is contained in:
Henrik Rydgard 2015-02-04 10:43:49 +01:00
parent ca512ea06a
commit fef70c528b
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ void TouchControlVisibilityScreen::CreateViews() {
keyImages["L"] = I_L;
keyImages["R"] = I_R;
keyToggles.clear();
keyToggles["Circle"] = &g_Config.bShowTouchCircle;
keyToggles["Cross"] = &g_Config.bShowTouchCross;
keyToggles["Square"] = &g_Config.bShowTouchSquare;

View File

@ -27,7 +27,7 @@ namespace UI {
class TouchControlVisibilityScreen : public UIDialogScreenWithBackground {
public:
TouchControlVisibilityScreen() { }
TouchControlVisibilityScreen() : toggleSwitch(true){ }
virtual void CreateViews();
virtual void onFinish(DialogResult result);