Fixed compiling iOS demos
authorSam Lantinga <slouken@libsdl.org>
Wed, 05 Jun 2013 23:11:20 -0700
changeset 729036c04a8c6545
parent 7289 32ffcc63e5c9
child 7292 fdf42e4cdcec
Fixed compiling iOS demos
Xcode-iOS/Demos/src/keyboard.c
Xcode-iOS/Demos/src/mixer.c
     1.1 --- a/Xcode-iOS/Demos/src/keyboard.c	Wed Jun 05 23:09:13 2013 -0700
     1.2 +++ b/Xcode-iOS/Demos/src/keyboard.c	Wed Jun 05 23:11:20 2013 -0700
     1.3 @@ -168,8 +168,7 @@
     1.4  drawBlank(int x, int y)
     1.5  {
     1.6      SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
     1.7 -    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b,
     1.8 -                           bg_color.unused);
     1.9 +    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
    1.10      SDL_RenderFillRect(renderer, &rect);
    1.11  }
    1.12  
    1.13 @@ -248,8 +247,7 @@
    1.14      loadFont();
    1.15  
    1.16      /* draw the background, we'll just paint over it */
    1.17 -    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b,
    1.18 -                           bg_color.unused);
    1.19 +    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
    1.20      SDL_RenderFillRect(renderer, NULL);
    1.21      SDL_RenderPresent(renderer);
    1.22  
     2.1 --- a/Xcode-iOS/Demos/src/mixer.c	Wed Jun 05 23:09:13 2013 -0700
     2.2 +++ b/Xcode-iOS/Demos/src/mixer.c	Wed Jun 05 23:11:20 2013 -0700
     2.3 @@ -171,7 +171,7 @@
     2.4      for (i = 0; i < NUM_DRUMS; i++) {
     2.5          SDL_Color color =
     2.6              buttons[i].isPressed ? buttons[i].downColor : buttons[i].upColor;
     2.7 -        SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.unused);
     2.8 +        SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.a);
     2.9          SDL_RenderFillRect(renderer, &buttons[i].rect);
    2.10      }
    2.11      /* update the screen */