From 3e8b44f22356f14fd2fd0451482a94d787006fc0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 20 Aug 2013 10:51:21 +0200 Subject: [PATCH] SDL1 desktopfullscreen too (crappy hack, should work) --- vid_sdl.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.39.2