Updated the iOS backend code to use Objective-C's automatic reference counting (ARC).

--HG--
branch : iOS-improvements
This commit is contained in:
Alex Szpakowski 2014-08-06 03:24:16 -03:00
parent 2b71883624
commit 9e4e1cac69
15 changed files with 181 additions and 176 deletions

View file

@ -25,15 +25,17 @@
#include "SDL_uikitvideo.h"
typedef struct
{
UIScreen *uiscreen;
} SDL_DisplayData;
@interface SDL_DisplayData : NSObject
typedef struct
{
UIScreenMode *uiscreenmode;
} SDL_DisplayModeData;
@property (nonatomic, strong) UIScreen *uiscreen;
@end
@interface SDL_DisplayModeData : NSObject
@property (nonatomic, strong) UIScreenMode *uiscreenmode;
@end
extern SDL_bool UIKit_IsDisplayLandscape(UIScreen *uiscreen);