test/common.c
changeset 1933 7ee5297340f7
parent 1924 69217fdd2c0a
child 1957 c7803e4c21d3
equal deleted inserted replaced
1932:dc864bcabcc4 1933:7ee5297340f7
   658                 fprintf(stderr, "Couldn't create window: %s\n",
   658                 fprintf(stderr, "Couldn't create window: %s\n",
   659                         SDL_GetError());
   659                         SDL_GetError());
   660                 return SDL_FALSE;
   660                 return SDL_FALSE;
   661             }
   661             }
   662 
   662 
   663             if (state->renderdriver
   663             if (!state->skip_renderer
   664                 || !(state->window_flags & SDL_WINDOW_OPENGL)) {
   664                 && (state->renderdriver
       
   665                     || !(state->window_flags & SDL_WINDOW_OPENGL))) {
   665                 m = -1;
   666                 m = -1;
   666                 if (state->renderdriver) {
   667                 if (state->renderdriver) {
   667                     SDL_RendererInfo info;
   668                     SDL_RendererInfo info;
   668                     n = SDL_GetNumRenderers();
   669                     n = SDL_GetNumRenderers();
   669                     for (j = 0; j < n; ++j) {
   670                     for (j = 0; j < n; ++j) {
   782             break;
   783             break;
   783         case SDL_WINDOWEVENT_FOCUS_LOST:
   784         case SDL_WINDOWEVENT_FOCUS_LOST:
   784             fprintf(stderr, "Window %d lost keyboard focus",
   785             fprintf(stderr, "Window %d lost keyboard focus",
   785                     event->window.windowID);
   786                     event->window.windowID);
   786             break;
   787             break;
       
   788         case SDL_WINDOWEVENT_CLOSE:
       
   789             fprintf(stderr, "Window %d closed", event->window.windowID);
       
   790             break;
   787         default:
   791         default:
   788             fprintf(stderr, "Window %d got unknown event %d",
   792             fprintf(stderr, "Window %d got unknown event %d",
   789                     event->window.windowID, event->window.event);
   793                     event->window.windowID, event->window.event);
   790             break;
   794             break;
   791         }
   795         }