Fixed compiling iOS demos
authorSam Lantinga <slouken@libsdl.org>
Wed, 05 Jun 2013 23:11:20 -0700
changeset 7290 36c04a8c6545
parent 7289 32ffcc63e5c9
child 7292 fdf42e4cdcec
Fixed compiling iOS demos
Xcode-iOS/Demos/src/keyboard.c
Xcode-iOS/Demos/src/mixer.c
--- a/Xcode-iOS/Demos/src/keyboard.c	Wed Jun 05 23:09:13 2013 -0700
+++ b/Xcode-iOS/Demos/src/keyboard.c	Wed Jun 05 23:11:20 2013 -0700
@@ -168,8 +168,7 @@
 drawBlank(int x, int y)
 {
     SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
-    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b,
-                           bg_color.unused);
+    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
     SDL_RenderFillRect(renderer, &rect);
 }
 
@@ -248,8 +247,7 @@
     loadFont();
 
     /* draw the background, we'll just paint over it */
-    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b,
-                           bg_color.unused);
+    SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
     SDL_RenderFillRect(renderer, NULL);
     SDL_RenderPresent(renderer);
 
--- a/Xcode-iOS/Demos/src/mixer.c	Wed Jun 05 23:09:13 2013 -0700
+++ b/Xcode-iOS/Demos/src/mixer.c	Wed Jun 05 23:11:20 2013 -0700
@@ -171,7 +171,7 @@
     for (i = 0; i < NUM_DRUMS; i++) {
         SDL_Color color =
             buttons[i].isPressed ? buttons[i].downColor : buttons[i].upColor;
-        SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.unused);
+        SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.a);
         SDL_RenderFillRect(renderer, &buttons[i].rect);
     }
     /* update the screen */