From: divverent Date: Fri, 10 Jan 2014 18:38:11 +0000 (+0000) Subject: sdl2: fix compile. X-Git-Tag: xonotic-v0.8.1~29^2~110 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b71b1316efa1753420f848c919215e6b46479bb;p=xonotic%2Fdarkplaces.git sdl2: fix compile. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12048 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_sdl.c b/vid_sdl.c index 324800d5..11fec735 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -2879,12 +2879,12 @@ vid_mode_t *VID_GetDesktopMode(void) Uint32 rmask, gmask, bmask, amask; SDL_GetDesktopDisplayMode(0, &mode); SDL_PixelFormatEnumToMasks(mode.format, &bpp, &rmask, &gmask, &bmask, &amask); - modes[k].width = mode.w; - modes[k].height = mode.h; - modes[k].bpp = bpp; - modes[k].refreshrate = mode.refreshrate; - modes[k].pixelheight_num = 1; - modes[k].pixelheight_denom = 1; // SDL does not provide this + desktop_mode.width = mode.w; + desktop_mode.height = mode.h; + desktop_mode.bpp = bpp; + desktop_mode.refreshrate = mode.refresh_rate; + desktop_mode.pixelheight_num = 1; + desktop_mode.pixelheight_denom = 1; // SDL does not provide this // TODO check whether this actually works, or whether we do still need // a read-window-size-after-entering-desktop-fullscreen hack for // multiscreen setups.