Fixed iPhone demos
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403559
This commit is contained in:
parent
4d78fdcef7
commit
7a8aae678e
5 changed files with 16 additions and 10 deletions
|
@ -167,13 +167,14 @@ void
|
|||
render(void)
|
||||
{
|
||||
int i;
|
||||
SDL_RenderFill(50, 50, 50, 255, NULL); /* draw background (gray) */
|
||||
SDL_SetRenderDrawColor(50, 50, 50, 255);
|
||||
SDL_RenderFill(NULL); /* draw background (gray) */
|
||||
/* draw the drum buttons */
|
||||
for (i = 0; i < NUM_DRUMS; i++) {
|
||||
SDL_Color color =
|
||||
buttons[i].isPressed ? buttons[i].downColor : buttons[i].upColor;
|
||||
SDL_RenderFill(color.r, color.g, color.b, color.unused,
|
||||
&buttons[i].rect);
|
||||
SDL_SetRenderDrawColor(color.r, color.g, color.b, color.unused);
|
||||
SDL_RenderFill(&buttons[i].rect);
|
||||
}
|
||||
/* update the screen */
|
||||
SDL_RenderPresent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue