diff src/video/uikit/SDL_uikitappdelegate.m @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents ec4db979dddb
children 8b03a20b320f
line wrap: on
line diff
--- a/src/video/uikit/SDL_uikitappdelegate.m	Thu Jan 21 05:49:41 2010 +0000
+++ b/src/video/uikit/SDL_uikitappdelegate.m	Thu Jan 21 06:21:52 2010 +0000
@@ -56,7 +56,7 @@
 @implementation SDLUIKitDelegate
 
 @synthesize window;
-@synthesize windowID;
+@synthesize uiwindow;
 
 /* convenience method */
 +(SDLUIKitDelegate *)sharedAppDelegate {
@@ -66,8 +66,8 @@
 
 - (id)init {
 	self = [super init];
-	window = nil;
-	windowID = 0;
+	window = NULL;
+	uiwindow = nil;
 	return self;
 }
 
@@ -107,19 +107,19 @@
 - (void) applicationWillResignActive:(UIApplication*)application
 {
 //	NSLog(@"%@", NSStringFromSelector(_cmd));
-	SDL_SendWindowEvent(self.windowID, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
+	SDL_SendWindowEvent(self.window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
 }
 
 - (void) applicationDidBecomeActive:(UIApplication*)application
 {
 //	NSLog(@"%@", NSStringFromSelector(_cmd));
-	SDL_SendWindowEvent(self.windowID, SDL_WINDOWEVENT_RESTORED, 0, 0);
+	SDL_SendWindowEvent(self.window, SDL_WINDOWEVENT_RESTORED, 0, 0);
 }
 
 
 
 -(void)dealloc {
-	[window release];
+	[uiwindow release];
 	[super dealloc];
 }