Commit d89219fa authored by Eric Wing's avatar Eric Wing

iOS Xcode project template fixes/changes.

- Embedded headers
- Embedded Universal Device/Simulator libSDL.a
- Changed search paths.
- Removed cruft from copy resources.
parent dab19180
......@@ -271,14 +271,14 @@
isa = PBXContainerItemProxy;
containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
proxyType = 1;
remoteGlobalIDString = 00B4F47112F696830084EC00 /* BuildUniversalSimulatorDevicelibSDL */;
remoteGlobalIDString = 00B4F47112F696830084EC00;
remoteInfo = BuildUniversalSimulatorDevicelibSDL;
};
00B4F4B012F6A9F00084EC00 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
proxyType = 1;
remoteGlobalIDString = 0064653F107E3D7400183915 /* Generate Header Files */;
remoteGlobalIDString = 0064653F107E3D7400183915;
remoteInfo = "Generate Header Files";
};
/* End PBXContainerItemProxy section */
......
......@@ -32,9 +32,10 @@ render(void)
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 @@ main(int argc, char *argv[])
}
/* Fill screen with black */
SDL_RenderFill(0, 0, 0, 0, NULL);
SDL_RenderClear();
/* Enter render loop, waiting for user to quit */
done = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment