From 9d3737bf1aa22988095fec6be59533846bf0eb5b Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Fri, 1 Apr 2016 12:35:32 -0400 Subject: [PATCH] Dismissing options menu after successfully saving or loading state; increased size of defaults and done button --- Common.iphone/KBDController.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Common.iphone/KBDController.mm b/Common.iphone/KBDController.mm index 4f297b6..bd95ae8 100644 --- a/Common.iphone/KBDController.mm +++ b/Common.iphone/KBDController.mm @@ -897,6 +897,7 @@ extern int x_frame_rate ; dir += "save"; dir += [segIndex UTF8String]; g_savestate.saveState(dir.c_str()); + [self optionsButton:nil]; [pManager setNotificationText:[NSString stringWithFormat:@"Saved State #%@",segIndex]]; } @@ -916,6 +917,7 @@ extern int x_frame_rate ; return; } g_savestate.restoreState(dir.c_str()); + [self optionsButton:nil]; [pManager setNotificationText:[NSString stringWithFormat:@"Loaded State #%@",segIndex]]; } @@ -1067,7 +1069,7 @@ extern int x_frame_rate ; CGColorSpaceRelease(colorSpace); const float lb = ho - LINEHEIGHT - OPTIONMARGIN; - const float WB = 50 * res; + const float WB = 100 * res; UIButton* button = [UIButton buttonWithType:(UIButtonType)100]; [button addTarget:self action:@selector(optionsButton:) forControlEvents:UIControlEventTouchUpInside]; @@ -1081,7 +1083,7 @@ extern int x_frame_rate ; UIButton* buttonrestore = [UIButton buttonWithType:(UIButtonType)100]; [buttonrestore addTarget:self action:@selector(restoreButton:) forControlEvents:UIControlEventTouchUpInside]; - [buttonrestore setTitle:@"Default" forState:UIControlStateNormal]; + [buttonrestore setTitle:@"Defaults" forState:UIControlStateNormal]; buttonrestore.frame = CGRectMake(OPTIONMARGIN,lb,WB,LINEHEIGHT);