Fixed typos in example code
authorSam Lantinga <slouken@libsdl.org>
Fri, 25 Mar 2011 13:19:48 -0700
changeset 5511be843abc1f6c
parent 5510 55519e27e5d1
child 5512 56ab281d7d3e
Fixed typos in example code
Xcode-iPhoneOS/Template/SDL iOS Application/main.c
     1.1 --- a/Xcode-iPhoneOS/Template/SDL iOS Application/main.c	Fri Mar 25 12:54:21 2011 -0700
     1.2 +++ b/Xcode-iPhoneOS/Template/SDL iOS Application/main.c	Fri Mar 25 13:19:48 2011 -0700
     1.3 @@ -24,7 +24,7 @@
     1.4  
     1.5      /* Clear the screen */
     1.6      SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
     1.7 -    SDL_SetRenderClear(renderer);
     1.8 +    SDL_RenderClear(renderer);
     1.9  
    1.10      /*  Come up with a random rectangle */
    1.11      SDL_Rect rect;
    1.12 @@ -74,7 +74,7 @@
    1.13      }
    1.14  
    1.15      renderer = SDL_CreateRenderer(window, -1, 0);
    1.16 -    if (renderer) {
    1.17 +    if (!renderer) {
    1.18          printf("Could not create renderer\n");
    1.19          return 1;
    1.20      }