Xcode-iPhoneOS/Template/SDL iOS Application/main.c
changeset 5511 be843abc1f6c
parent 5412 279f6853c459
--- a/Xcode-iPhoneOS/Template/SDL iOS Application/main.c	Fri Mar 25 12:54:21 2011 -0700
+++ b/Xcode-iPhoneOS/Template/SDL iOS Application/main.c	Fri Mar 25 13:19:48 2011 -0700
@@ -24,7 +24,7 @@
 
     /* Clear the screen */
     SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
-    SDL_SetRenderClear(renderer);
+    SDL_RenderClear(renderer);
 
     /*  Come up with a random rectangle */
     SDL_Rect rect;
@@ -74,7 +74,7 @@
     }
 
     renderer = SDL_CreateRenderer(window, -1, 0);
-    if (renderer) {
+    if (!renderer) {
         printf("Could not create renderer\n");
         return 1;
     }