Mercurial > sdl-ios-xcode
comparison test/testwin.c @ 228:153f221b7d48
Give more info about the current video mode
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Nov 2001 04:18:05 +0000 |
parents | 74212992fb08 |
children | be9c9c8f6d53 |
comparison
equal
deleted
inserted
replaced
227:24878c14b391 | 228:153f221b7d48 |
---|---|
333 if ( screen == NULL ) { | 333 if ( screen == NULL ) { |
334 fprintf(stderr, "Couldn't set %dx%dx%d video mode: %s\n", | 334 fprintf(stderr, "Couldn't set %dx%dx%d video mode: %s\n", |
335 w, h, desired_bpp, SDL_GetError()); | 335 w, h, desired_bpp, SDL_GetError()); |
336 exit(1); | 336 exit(1); |
337 } | 337 } |
338 printf("Set %dx%dx%d mode\n", | 338 printf("Set%s %dx%dx%d mode\n", |
339 screen->flags & SDL_FULLSCREEN ? " fullscreen" : "", | |
339 screen->w, screen->h, screen->format->BitsPerPixel); | 340 screen->w, screen->h, screen->format->BitsPerPixel); |
340 printf("(video surface located in %s memory)\n", | 341 printf("(video surface located in %s memory)\n", |
341 (screen->flags&SDL_HWSURFACE) ? "video" : "system"); | 342 (screen->flags&SDL_HWSURFACE) ? "video" : "system"); |
342 if ( screen->flags & SDL_DOUBLEBUF ) { | 343 if ( screen->flags & SDL_DOUBLEBUF ) { |
343 printf("Double-buffering enabled\n"); | 344 printf("Double-buffering enabled\n"); |