diff XCodeiPhoneOS/Demos/src/keyboard.c @ 3093:375ee92745e8

Fixed iPhone demos
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Mar 2009 03:56:21 +0000
parents 9dde605c7540
children 7f684f249ec9
line wrap: on
line diff
--- a/XCodeiPhoneOS/Demos/src/keyboard.c	Tue Mar 17 03:24:22 2009 +0000
+++ b/XCodeiPhoneOS/Demos/src/keyboard.c	Tue Mar 17 03:56:21 2009 +0000
@@ -174,8 +174,8 @@
 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 @@
     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;