| Summary: | IPhone Template - code should be updated for SDL_Render change | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Trent M <thm99> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Mac OS X 10.6 | ||
|
Description
Trent M
2011-02-20 10:01:14 UTC
Also, IDE: XCode 3.2.5 IPHONE SDK: 4.2 This should be fixed now: http://hg.libsdl.org/SDL/rev/d032ec40e7c1 Please let me know if you have any more problems! :) Thanks! looks like the two additional calls at the start of render() are not valid.
SetRenderDrawColor is missing renderer & the Clear syntax looks invalid. I included what I had to modify:
/* Clear the screen */
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
SDL_RenderClear(renderer);
also in the main, the guard statement after the create render always evaluates true regardless.
renderer = SDL_CreateRenderer(window, -1, 0);
//if (renderer) {
// printf("Could not create renderer\n");
// return 1;
//}
Fixed, thanks! http://hg.libsdl.org/SDL/rev/be843abc1f6c |