Xcode-iPhoneOS/Template/SDL iOS Application/main.c
changeset 5412 279f6853c459
parent 5366 d032ec40e7c1
child 5511 be843abc1f6c
equal deleted inserted replaced
5411:e76c379a80ef 5412:279f6853c459
    21 {
    21 {
    22 
    22 
    23     Uint8 r, g, b;
    23     Uint8 r, g, b;
    24 
    24 
    25     /* Clear the screen */
    25     /* Clear the screen */
    26     SDL_SetRenderDrawColor(0, 0, 0, 255);
    26     SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
    27     SDL_SetRenderClear(renderer);
    27     SDL_SetRenderClear(renderer);
    28 
    28 
    29     /*  Come up with a random rectangle */
    29     /*  Come up with a random rectangle */
    30     SDL_Rect rect;
    30     SDL_Rect rect;
    31     rect.w = randomInt(64, 128);
    31     rect.w = randomInt(64, 128);