test/testime.c
changeset 7191 75360622e65f
parent 6785 c094c438c0a6
child 7517 965d57022c01
equal deleted inserted replaced
7190:11612d544fcd 7191:75360622e65f
   236                 usage();
   236                 usage();
   237                 return 0;
   237                 return 0;
   238             }
   238             }
   239         }
   239         }
   240     }
   240     }
   241     
   241 
   242     if (!SDLTest_CommonInit(state)) {
   242     if (!SDLTest_CommonInit(state)) {
   243         return 2;
   243         return 2;
   244     }
   244     }
   245 
   245 
   246 
   246 
   265         SDL_Renderer *renderer = state->renderers[i];
   265         SDL_Renderer *renderer = state->renderers[i];
   266         SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_NONE);
   266         SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_NONE);
   267         SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
   267         SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
   268         SDL_RenderClear(renderer);
   268         SDL_RenderClear(renderer);
   269     }
   269     }
   270     Redraw();    
   270     Redraw();
   271     /* Main render loop */
   271     /* Main render loop */
   272     done = 0;
   272     done = 0;
   273     while (!done) {
   273     while (!done) {
   274         /* Check for events */
   274         /* Check for events */
   275         while (SDL_PollEvent(&event)) {
   275         while (SDL_PollEvent(&event)) {
   354                     cursor = event.edit.start;
   354                     cursor = event.edit.start;
   355                     Redraw();
   355                     Redraw();
   356                     break;
   356                     break;
   357                 }
   357                 }
   358                 break;
   358                 break;
   359                     
   359 
   360             }
   360             }
   361         }
   361         }
   362     }
   362     }
   363     CleanupVideo();
   363     CleanupVideo();
   364     SDLTest_CommonQuit(state);
   364     SDLTest_CommonQuit(state);