Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed compiling iOS demos

  • Loading branch information
slouken committed Jun 6, 2013
1 parent 984ed89 commit a9d9c44e1481df7570e42f50a44a7134df3fe420
Showing with 3 additions and 5 deletions.
  1. +2 −4 Xcode-iOS/Demos/src/keyboard.c
  2. +1 −1 Xcode-iOS/Demos/src/mixer.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);

@@ -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 */

0 comments on commit a9d9c44

Please sign in to comment.