comparison XCodeiPhoneOS/Demos/src/keyboard.c @ 3139:7f684f249ec9

indent
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 May 2009 22:41:08 +0000
parents 375ee92745e8
children
comparison
equal deleted inserted replaced
3125:d71d8ceda8b3 3139:7f684f249ec9
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_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused); 177 SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b,
178 bg_color.unused);
178 SDL_RenderFill(&rect); 179 SDL_RenderFill(&rect);
179 } 180 }
180 181
181 /* moves backwards one character, erasing the last one put down */ 182 /* moves backwards one character, erasing the last one put down */
182 void 183 void
252 253
253 /* load up our font */ 254 /* load up our font */
254 loadFont(); 255 loadFont();
255 256
256 /* draw the background, we'll just paint over it */ 257 /* draw the background, we'll just paint over it */
257 SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused); 258 SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b,
259 bg_color.unused);
258 SDL_RenderFill(NULL); 260 SDL_RenderFill(NULL);
259 SDL_RenderPresent(); 261 SDL_RenderPresent();
260 262
261 int done = 0; 263 int done = 0;
262 /* loop till we get SDL_Quit */ 264 /* loop till we get SDL_Quit */