Fixed compiling iOS demos
This commit is contained in:
parent
b95977a499
commit
7fe9747caf
2 changed files with 3 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue