comparison XCodeiPhoneOS/Demos/src/touch.c @ 3093:375ee92745e8

Fixed iPhone demos
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Mar 2009 03:56:21 +0000
parents 9dde605c7540
children
comparison
equal deleted inserted replaced
3092:cad1aefa2ed9 3093:375ee92745e8
93 93
94 /*load brush texture */ 94 /*load brush texture */
95 initializeTexture(); 95 initializeTexture();
96 96
97 /* fill canvass initially with all black */ 97 /* fill canvass initially with all black */
98 SDL_RenderFill(0, 0, 0, 255, NULL); 98 SDL_SetRenderDrawColor(0, 0, 0, 255);
99 SDL_RenderFill(NULL);
99 SDL_RenderPresent(); 100 SDL_RenderPresent();
100 101
101 done = 0; 102 done = 0;
102 while (!done && SDL_WaitEvent(&event)) { 103 while (!done && SDL_WaitEvent(&event)) {
103 switch (event.type) { 104 switch (event.type) {