Commit c33ade3b authored by Kees Bakker's avatar Kees Bakker

Make SDL_uikitviewcontroller.window a real Objective-C property and synthesize

parent f1c04b8c
...@@ -27,8 +27,12 @@ ...@@ -27,8 +27,12 @@
@private @private
SDL_Window *window; SDL_Window *window;
} }
@property (readwrite) SDL_Window *window;
- (id)initWithSDLWindow:(SDL_Window *)_window; - (id)initWithSDLWindow:(SDL_Window *)_window;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient; - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
- (void)loadView; - (void)loadView;
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation; - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
@end @end
...@@ -33,12 +33,15 @@ ...@@ -33,12 +33,15 @@
@implementation SDL_uikitviewcontroller @implementation SDL_uikitviewcontroller
@synthesize window;
- (id)initWithSDLWindow:(SDL_Window *)_window - (id)initWithSDLWindow:(SDL_Window *)_window
{ {
if ((self = [self init]) == nil) { self = [self init];
if (self == nil) {
return nil; return nil;
} }
self->window = _window; self.window = _window;
return self; return self;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment