Xcode-iPhoneOS/Demos/src/touch.c
changeset 5285 ee03772989eb
parent 5208 78db79f5a4e2
equal deleted inserted replaced
5284:96a22141cf86 5285:ee03772989eb
    95     /*load brush texture */
    95     /*load brush texture */
    96     initializeTexture(renderer);
    96     initializeTexture(renderer);
    97 
    97 
    98     /* fill canvass initially with all black */
    98     /* fill canvass initially with all black */
    99     SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
    99     SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
   100     SDL_RenderClear();
   100     SDL_RenderClear(renderer);
   101     SDL_RenderPresent(renderer);
   101     SDL_RenderPresent(renderer);
   102 
   102 
   103     done = 0;
   103     done = 0;
   104     while (!done && SDL_WaitEvent(&event)) {
   104     while (!done && SDL_WaitEvent(&event)) {
   105         switch (event.type) {
   105         switch (event.type) {