Mercurial > sdl-ios-xcode
diff XCodeiPhoneOS/Demos/src/rectangles.c @ 3093:375ee92745e8
Fixed iPhone demos
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 17 Mar 2009 03:56:21 +0000 |
parents | f55c87ae336b |
children |
line wrap: on
line diff
--- a/XCodeiPhoneOS/Demos/src/rectangles.c Tue Mar 17 03:24:22 2009 +0000 +++ b/XCodeiPhoneOS/Demos/src/rectangles.c Tue Mar 17 03:56:21 2009 +0000 @@ -26,7 +26,8 @@ b = randomInt(50, 255); /* Fill the rectangle in the color */ - SDL_RenderFill(r, g, b, 255, &rect); + SDL_SetRenderDrawColor(r, g, b, 255); + SDL_RenderFill(&rect); /* update screen */ SDL_RenderPresent(); @@ -61,7 +62,8 @@ } /* Fill screen with black */ - SDL_RenderFill(0, 0, 0, 0, NULL); + SDL_SetRenderDrawColor(0, 0, 0, 255); + SDL_RenderFill(NULL); /* Enter render loop, waiting for user to quit */ done = 0;