From: Rudolf Polzer Date: Tue, 20 Aug 2013 08:51:21 +0000 (+0200) Subject: SDL1 desktopfullscreen too (crappy hack, should work) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3e8b44f22356f14fd2fd0451482a94d787006fc0;p=xonotic%2Fdarkplaces.git SDL1 desktopfullscreen too (crappy hack, should work) --- diff --git a/vid_sdl.c b/vid_sdl.c index 6d200f22..9fff9613 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -2476,6 +2476,10 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode) vid_isfullscreen = false; if (mode->fullscreen) { #if SDL_MAJOR_VERSION == 1 + SDL_VideoInfo *vi = SDL_GetVideoInfo(); + mode->width = vi->current_w; + mode->height = vi->current_h; + mode->bitsperpixel = vi->vfmt->BitsPerPixel; flags |= SDL_FULLSCREEN; #else if (vid_desktopfullscreen.integer) @@ -2623,6 +2627,10 @@ static qboolean VID_InitModeSoft(viddef_mode_t *mode) vid_isfullscreen = false; if (mode->fullscreen) { #if SDL_MAJOR_VERSION == 1 + SDL_VideoInfo *vi = SDL_GetVideoInfo(); + mode->width = vi->current_w; + mode->height = vi->current_h; + mode->bitsperpixel = vi->vfmt->BitsPerPixel; flags |= SDL_FULLSCREEN; #else if (vid_desktopfullscreen.integer)