test/common.c
changeset 1923 d4572b97b08f
parent 1921 f3399f779a1d
child 1924 69217fdd2c0a
equal deleted inserted replaced
1922:4905cac7a4bd 1923:d4572b97b08f
   608 
   608 
   609             n = SDL_GetNumRenderers();
   609             n = SDL_GetNumRenderers();
   610             if (n == 0) {
   610             if (n == 0) {
   611                 fprintf(stderr, "No built-in render drivers\n");
   611                 fprintf(stderr, "No built-in render drivers\n");
   612             } else {
   612             } else {
   613                 fprintf(stderr, "Built-in render video drivers:\n");
   613                 fprintf(stderr, "Built-in render drivers:\n");
   614                 for (i = 0; i < n; ++i) {
   614                 for (i = 0; i < n; ++i) {
   615                     SDL_GetRendererInfo(i, &info);
   615                     SDL_GetRendererInfo(i, &info);
   616                     PrintRenderer(&info);
   616                     PrintRenderer(&info);
   617                 }
   617                 }
   618             }
   618             }
   688                     (state->windows[i], m, state->render_flags) < 0) {
   688                     (state->windows[i], m, state->render_flags) < 0) {
   689                     fprintf(stderr, "Couldn't create renderer: %s\n",
   689                     fprintf(stderr, "Couldn't create renderer: %s\n",
   690                             SDL_GetError());
   690                             SDL_GetError());
   691                     return SDL_FALSE;
   691                     return SDL_FALSE;
   692                 }
   692                 }
       
   693                 if (state->verbose & VERBOSE_RENDER) {
       
   694                     SDL_RendererInfo info;
       
   695 
       
   696                     fprintf(stderr, "Current renderer:\n");
       
   697                     SDL_GetRendererInfo(-1, &info);
       
   698                     PrintRenderer(&info);
       
   699                 }
   693             }
   700             }
   694         }
   701         }
   695         SDL_SelectRenderer(state->windows[0]);
   702         SDL_SelectRenderer(state->windows[0]);
   696     }
   703     }
   697 
   704