From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/video/uikit/SDL_uikitmessagebox.m | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/source/src/video/uikit/SDL_uikitmessagebox.m b/source/src/video/uikit/SDL_uikitmessagebox.m
index d5c0309..c1f78b7 100644
--- a/source/src/video/uikit/SDL_uikitmessagebox.m
+++ b/source/src/video/uikit/SDL_uikitmessagebox.m
@@ -85,10 +85,10 @@
}
action = [UIAlertAction actionWithTitle:@(sdlButton->text)
- style:style
- handler:^(UIAlertAction *action) {
- clickedindex = (int)(sdlButton - messageboxdata->buttons);
- }];
+ style:style
+ handler:^(UIAlertAction *action) {
+ clickedindex = (int)(sdlButton - messageboxdata->buttons);
+ }];
[alert addAction:action];
if (sdlButton->flags & SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT) {
@@ -151,7 +151,6 @@
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000
int i;
int clickedindex = messageboxdata->numbuttons;
- const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
UIAlertView *alert = [[UIAlertView alloc] init];
SDLAlertViewDelegate *delegate = [[SDLAlertViewDelegate alloc] init];
@@ -177,9 +176,9 @@
alert.delegate = nil;
- if (messageboxdata->flags & SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT) {
- clickedindex = messageboxdata->numbuttons - 1 - clickedindex;
- }
+ if (messageboxdata->flags & SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT) {
+ clickedindex = messageboxdata->numbuttons - 1 - clickedindex;
+ }
*buttonid = messageboxdata->buttons[clickedindex].buttonid;
return YES;
#else
--
Gitblit v1.9.3