Mercurial > sdl-ios-xcode
comparison XCodeiPhoneOS/Demos/src/mixer.c @ 3139:7f684f249ec9
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 May 2009 22:41:08 +0000 |
parents | 375ee92745e8 |
children |
comparison
equal
deleted
inserted
replaced
3125:d71d8ceda8b3 | 3139:7f684f249ec9 |
---|---|
166 void | 166 void |
167 render(void) | 167 render(void) |
168 { | 168 { |
169 int i; | 169 int i; |
170 SDL_SetRenderDrawColor(50, 50, 50, 255); | 170 SDL_SetRenderDrawColor(50, 50, 50, 255); |
171 SDL_RenderFill(NULL); /* draw background (gray) */ | 171 SDL_RenderFill(NULL); /* draw background (gray) */ |
172 /* draw the drum buttons */ | 172 /* draw the drum buttons */ |
173 for (i = 0; i < NUM_DRUMS; i++) { | 173 for (i = 0; i < NUM_DRUMS; i++) { |
174 SDL_Color color = | 174 SDL_Color color = |
175 buttons[i].isPressed ? buttons[i].downColor : buttons[i].upColor; | 175 buttons[i].isPressed ? buttons[i].downColor : buttons[i].upColor; |
176 SDL_SetRenderDrawColor(color.r, color.g, color.b, color.unused); | 176 SDL_SetRenderDrawColor(color.r, color.g, color.b, color.unused); |