Fixed iPhone demos

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403559
This commit is contained in:
Sam Lantinga 2009-03-17 03:56:21 +00:00
parent 4d78fdcef7
commit 7a8aae678e
5 changed files with 16 additions and 10 deletions

View file

@ -26,7 +26,8 @@ render(void)
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 @@ main(int argc, char *argv[])
}
/* 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;