diff Xcode-iPhoneOS/Template/SDL iOS Application/main.c @ 5078:067973aec4d8

iOS Xcode project template fixes/changes. - Embedded headers - Embedded Universal Device/Simulator libSDL.a - Changed search paths. - Removed cruft from copy resources.
author Eric Wing <ewing . public |-at-| gmail . com>
date Mon, 31 Jan 2011 07:36:12 -0800
parents 37b582b8bb07
children
line wrap: on
line diff
--- a/Xcode-iPhoneOS/Template/SDL iOS Application/main.c	Mon Jan 31 00:37:38 2011 -0800
+++ b/Xcode-iPhoneOS/Template/SDL iOS Application/main.c	Mon Jan 31 07:36:12 2011 -0800
@@ -32,9 +32,10 @@
     r = randomInt(50, 255);
     g = randomInt(50, 255);
     b = randomInt(50, 255);
+    SDL_SetRenderDrawColor(r, g, b, 255);
 
     /*  Fill the rectangle in the color */
-    SDL_RenderFill(r, g, b, 255, &rect);
+    SDL_RenderFillRect(&rect);
 
     /* update screen */
     SDL_RenderPresent();
@@ -69,7 +70,7 @@
     }
 
     /* Fill screen with black */
-    SDL_RenderFill(0, 0, 0, 0, NULL);
+    SDL_RenderClear();
 
     /* Enter render loop, waiting for user to quit */
     done = 0;