comparison 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
comparison
equal deleted inserted replaced
3092:cad1aefa2ed9 3093:375ee92745e8
172 */ 172 */
173 void 173 void
174 drawBlank(int x, int y) 174 drawBlank(int x, int y)
175 { 175 {
176 SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN }; 176 SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
177 SDL_RenderFill(bg_color.r, bg_color.g, bg_color.b, bg_color.unused, 177 SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused);
178 &rect); 178 SDL_RenderFill(&rect);
179 } 179 }
180 180
181 /* moves backwards one character, erasing the last one put down */ 181 /* moves backwards one character, erasing the last one put down */
182 void 182 void
183 backspace(void) 183 backspace(void)
252 252
253 /* load up our font */ 253 /* load up our font */
254 loadFont(); 254 loadFont();
255 255
256 /* draw the background, we'll just paint over it */ 256 /* draw the background, we'll just paint over it */
257 SDL_RenderFill(bg_color.r, bg_color.g, bg_color.b, bg_color.unused, NULL); 257 SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused);
258 SDL_RenderFill(NULL);
258 SDL_RenderPresent(); 259 SDL_RenderPresent();
259 260
260 int done = 0; 261 int done = 0;
261 /* loop till we get SDL_Quit */ 262 /* loop till we get SDL_Quit */
262 while (SDL_WaitEvent(&event)) { 263 while (SDL_WaitEvent(&event)) {