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
|
@ -174,8 +174,8 @@ void
|
|||
drawBlank(int x, int y)
|
||||
{
|
||||
SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
|
||||
SDL_RenderFill(bg_color.r, bg_color.g, bg_color.b, bg_color.unused,
|
||||
&rect);
|
||||
SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused);
|
||||
SDL_RenderFill(&rect);
|
||||
}
|
||||
|
||||
/* moves backwards one character, erasing the last one put down */
|
||||
|
@ -254,7 +254,8 @@ main(int argc, char *argv[])
|
|||
loadFont();
|
||||
|
||||
/* draw the background, we'll just paint over it */
|
||||
SDL_RenderFill(bg_color.r, bg_color.g, bg_color.b, bg_color.unused, NULL);
|
||||
SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused);
|
||||
SDL_RenderFill(NULL);
|
||||
SDL_RenderPresent();
|
||||
|
||||
int done = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue