test/common.c
changeset 6505 ce7abf273d8c
parent 6503 8ff31baded38
child 6508 81a3d541d9a2
equal deleted inserted replaced
6504:100c49578dba 6505:ce7abf273d8c
   615             SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, state->gl_major_version);
   615             SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, state->gl_major_version);
   616             SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, state->gl_minor_version);
   616             SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, state->gl_minor_version);
   617         }
   617         }
   618 
   618 
   619         if (state->verbose & VERBOSE_MODES) {
   619         if (state->verbose & VERBOSE_MODES) {
       
   620             SDL_Rect bounds;
   620             SDL_DisplayMode mode;
   621             SDL_DisplayMode mode;
   621             int bpp;
   622             int bpp;
   622             Uint32 Rmask, Gmask, Bmask, Amask;
   623             Uint32 Rmask, Gmask, Bmask, Amask;
   623 
   624 
   624             n = SDL_GetNumVideoDisplays();
   625             n = SDL_GetNumVideoDisplays();
   625             fprintf(stderr, "Number of displays: %d\n", n);
   626             fprintf(stderr, "Number of displays: %d\n", n);
   626             for (i = 0; i < n; ++i) {
   627             for (i = 0; i < n; ++i) {
   627                 fprintf(stderr, "Display %d:\n", i);
   628                 fprintf(stderr, "Display %d:\n", i);
       
   629 
       
   630                 SDL_zero(bounds);
       
   631                 SDL_GetDisplayBounds(i, &bounds);
       
   632                 fprintf(stderr, "Bounds: %dx%d at %d,%d\n", bounds.w, bounds.h, bounds.x, bounds.y);
   628 
   633 
   629                 SDL_GetDesktopDisplayMode(i, &mode);
   634                 SDL_GetDesktopDisplayMode(i, &mode);
   630                 SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask,
   635                 SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask,
   631                                            &Bmask, &Amask);
   636                                            &Bmask, &Amask);
   632                 fprintf(stderr,
   637                 fprintf(stderr,