Be explicit about what display you're querying. The default display is 0.

This commit is contained in:
Sam Lantinga 2011-02-10 12:14:37 -08:00
parent e0f869b698
commit e9689c29d5
9 changed files with 90 additions and 166 deletions

View file

@ -122,12 +122,9 @@ void InitVideo(int argc, char *argv[])
if (fullscreen)
{
SDL_DisplayMode mode;
SDL_GetDesktopDisplayMode(&mode);
width = mode.w;
height = mode.h;
fprintf(stderr, "%dx%d\n", width, height);
/* Use the desktop mode */
width = 0;
height = 0;
flags |= SDL_FULLSCREEN;
}
@ -375,3 +372,5 @@ int main(int argc, char *argv[])
CleanupVideo();
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */