Commit 7db054c7 authored by Sam Lantinga's avatar Sam Lantinga

Give more info about the current video mode

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40229
parent c05194de
...@@ -335,7 +335,8 @@ int main(int argc, char *argv[]) ...@@ -335,7 +335,8 @@ int main(int argc, char *argv[])
w, h, desired_bpp, SDL_GetError()); w, h, desired_bpp, SDL_GetError());
exit(1); 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); screen->w, screen->h, screen->format->BitsPerPixel);
printf("(video surface located in %s memory)\n", printf("(video surface located in %s memory)\n",
(screen->flags&SDL_HWSURFACE) ? "video" : "system"); (screen->flags&SDL_HWSURFACE) ? "video" : "system");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment