equal
deleted
inserted
replaced
82 int UIKit_CreateWindow(_THIS, SDL_Window *window) { |
82 int UIKit_CreateWindow(_THIS, SDL_Window *window) { |
83 /* We currently only handle single window applications on iPhone |
83 /* We currently only handle single window applications on iPhone |
84 if (nil != [SDLUIKitDelegate sharedAppDelegate].window) { |
84 if (nil != [SDLUIKitDelegate sharedAppDelegate].window) { |
85 SDL_SetError("Window already exists, no multi-window support."); |
85 SDL_SetError("Window already exists, no multi-window support."); |
86 return -1; |
86 return -1; |
87 } |
87 }*/ |
88 |
88 |
89 // ignore the size user requested, and make a fullscreen window |
89 // ignore the size user requested, and make a fullscreen window |
90 UIWindow *uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];*/ |
90 //UIWindow *uiwindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
91 |
91 |
92 // since we handle the window with a NIB, we don't need the initialization above |
92 // since we handle the window with a NIB, we don't need the initialization above |
93 if (SetupWindowData(_this, window, [SDLUIKitDelegate sharedAppDelegate].uiwindow, SDL_TRUE) < 0) { |
93 if (SetupWindowData(_this, window, [SDLUIKitDelegate sharedAppDelegate].uiwindow, SDL_TRUE) < 0) { |
94 SDL_SetError("SetupWindowData() failed"); |
94 SDL_SetError("SetupWindowData() failed"); |
95 //[uiwindow release]; |
95 //[uiwindow release]; |