Give more info about the current video mode

This commit is contained in:
Sam Lantinga 2001-11-04 04:18:05 +00:00
parent 6eef77e957
commit c169d9f015

View File

@ -335,7 +335,8 @@ int main(int argc, char *argv[])
w, h, desired_bpp, SDL_GetError());
exit(1);
}
printf("Set %dx%dx%d mode\n",
printf("Set%s %dx%dx%d mode\n",
screen->flags & SDL_FULLSCREEN ? " fullscreen" : "",
screen->w, screen->h, screen->format->BitsPerPixel);
printf("(video surface located in %s memory)\n",
(screen->flags&SDL_HWSURFACE) ? "video" : "system");