Mercurial > sdl-ios-xcode
diff XCodeiPhoneOS/Demos/src/mixer.c @ 3093:375ee92745e8
Fixed iPhone demos
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 17 Mar 2009 03:56:21 +0000 |
parents | f55c87ae336b |
children | 7f684f249ec9 |
line wrap: on
line diff
--- a/XCodeiPhoneOS/Demos/src/mixer.c Tue Mar 17 03:24:22 2009 +0000 +++ b/XCodeiPhoneOS/Demos/src/mixer.c Tue Mar 17 03:56:21 2009 +0000 @@ -167,13 +167,14 @@ 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();