Removed log messages (printf and NSLog) gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 15 Aug 2008 00:42:14 +0000
branchgsoc2008_iphone
changeset 2425 491958a6c881
parent 2424 ecc18fbfdec3
child 2426 aad0c5ccf6bb
Removed log messages (printf and NSLog)
src/video/uikit/SDL_uikitevents.m
src/video/uikit/SDL_uikitopenglview.m
src/video/uikit/SDL_uikitvideo.m
src/video/uikit/SDL_uikitview.h
src/video/uikit/SDL_uikitview.m
--- a/src/video/uikit/SDL_uikitevents.m	Fri Aug 15 00:40:47 2008 +0000
+++ b/src/video/uikit/SDL_uikitevents.m	Fri Aug 15 00:42:14 2008 +0000
@@ -50,7 +50,7 @@
 	 
 	 */	
 	if (setjmp(*jump_env()) != 0) {
-		NSLog(@"Bam! We're back");
+		//NSLog(@"Bam! We're back");
 	}
 	else {
 		SInt32 result;
--- a/src/video/uikit/SDL_uikitopenglview.m	Fri Aug 15 00:40:47 2008 +0000
+++ b/src/video/uikit/SDL_uikitopenglview.m	Fri Aug 15 00:42:14 2008 +0000
@@ -119,13 +119,9 @@
 		}
 			
 		if(glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES) != GL_FRAMEBUFFER_COMPLETE_OES) {
-			NSLog(@"failed to make complete framebuffer object %x", glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES));
 			return NO;
 		}
 		/* end create buffers */
-		
-		NSLog(@"Done initializing ...");
-		
 	}
 	return self;
 }
@@ -137,9 +133,7 @@
 
 - (void)swapBuffers {
 	glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);
-	if (![context presentRenderbuffer:GL_RENDERBUFFER_OES]) {
-		NSLog(@"Could not swap buffers");
-	}
+	[context presentRenderbuffer:GL_RENDERBUFFER_OES];
 }
 
 
--- a/src/video/uikit/SDL_uikitvideo.m	Fri Aug 15 00:40:47 2008 +0000
+++ b/src/video/uikit/SDL_uikitvideo.m	Fri Aug 15 00:42:14 2008 +0000
@@ -118,8 +118,6 @@
 UIKit_VideoInit(_THIS)
 {
     SDL_DisplayMode mode;
-
-	printf("UIKit Video init!");
 		
 	_this->gl_config.driver_loaded = 1;
 
--- a/src/video/uikit/SDL_uikitview.h	Fri Aug 15 00:40:47 2008 +0000
+++ b/src/video/uikit/SDL_uikitview.h	Fri Aug 15 00:42:14 2008 +0000
@@ -26,7 +26,11 @@
 #include "SDL_mouse_c.h"
 #include "SDL_events.h"
 
-#define MAX_SIMULTANEOUS_TOUCHES 5
+#if SDL_IPHONE_MULTIPLE_MICE
+	#define MAX_SIMULTANEOUS_TOUCHES 5
+#else
+	#define MAX_SIMULTANEOUS_TOUCHES 1
+#endif
 
 @interface SDL_uikitview : UIView<UITextFieldDelegate> {
 		
--- a/src/video/uikit/SDL_uikitview.m	Fri Aug 15 00:40:47 2008 +0000
+++ b/src/video/uikit/SDL_uikitview.m	Fri Aug 15 00:42:14 2008 +0000
@@ -144,9 +144,7 @@
 
 /* UITextFieldDelegate related methods */
 - (void)initializeKeyboard {
-	
-	NSLog(@"Text field init");
-	
+		
 	textField = [[UITextField alloc] initWithFrame: CGRectZero];
 	textField.delegate = self;
 	/* placeholder so there is something to delete! */