test/common.c
changeset 6503 8ff31baded38
parent 6471 5f6990aaf357
child 6505 ce7abf273d8c
equal deleted inserted replaced
6502:f41a82de351e 6503:8ff31baded38
   734                 fprintf(stderr, "Couldn't create window: %s\n",
   734                 fprintf(stderr, "Couldn't create window: %s\n",
   735                         SDL_GetError());
   735                         SDL_GetError());
   736                 return SDL_FALSE;
   736                 return SDL_FALSE;
   737             }
   737             }
   738             SDL_GetWindowSize(state->windows[i], &w, &h);
   738             SDL_GetWindowSize(state->windows[i], &w, &h);
   739             if (w != state->window_w || h != state->window_h) {
   739             if (!(state->window_flags & SDL_WINDOW_RESIZABLE) &&
       
   740                 (w != state->window_w || h != state->window_h)) {
   740                 printf("Window requested size %dx%d, got %dx%d\n", state->window_w, state->window_h, w, h);
   741                 printf("Window requested size %dx%d, got %dx%d\n", state->window_w, state->window_h, w, h);
   741                 state->window_w = w;
   742                 state->window_w = w;
   742                 state->window_h = h;
   743                 state->window_h = h;
   743             }
   744             }
   744             if (SDL_SetWindowDisplayMode(state->windows[i], &fullscreen_mode) < 0) {
   745             if (SDL_SetWindowDisplayMode(state->windows[i], &fullscreen_mode) < 0) {