diff options
author | Sam Lantinga <slouken@libsdl.org> | 2013-06-05 23:11:20 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2013-06-05 23:11:20 -0700 |
commit | 93e8a274d691a0c24021fe8363794722fac85962 (patch) | |
tree | 05ec614849f95a58c302655a019902988642a5c1 /Xcode-iOS | |
parent | 895116188deadead3042417e9a211ddc3752728b (diff) |
Fixed compiling iOS demos
Diffstat (limited to 'Xcode-iOS')
-rw-r--r-- | Xcode-iOS/Demos/src/keyboard.c | 6 | ||||
-rw-r--r-- | Xcode-iOS/Demos/src/mixer.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Xcode-iOS/Demos/src/keyboard.c b/Xcode-iOS/Demos/src/keyboard.c index 4b55c7be43..fd903ff864 100644 --- a/Xcode-iOS/Demos/src/keyboard.c +++ b/Xcode-iOS/Demos/src/keyboard.c @@ -168,8 +168,7 @@ void 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 @@ main(int argc, char *argv[]) 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); diff --git a/Xcode-iOS/Demos/src/mixer.c b/Xcode-iOS/Demos/src/mixer.c index 526abb07ba..bd0cfb1dff 100644 --- a/Xcode-iOS/Demos/src/mixer.c +++ b/Xcode-iOS/Demos/src/mixer.c @@ -171,7 +171,7 @@ render(SDL_Renderer *renderer) 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 */ |