From: divverent Date: Wed, 5 Aug 2009 13:36:58 +0000 (+0000) Subject: fixes for vid_wgl X-Git-Tag: xonotic-v0.1.0preview~1537 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6fb1946573c6294e85bae2a6f6c18259f9986247;p=xonotic%2Fdarkplaces.git fixes for vid_wgl git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9092 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index e6cb7002..bde2dda2 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -2071,7 +2071,8 @@ static void IN_Shutdown(void) size_t VID_ListModes(vid_mode_t *modes, size_t maxcount) { - int i, k; + int i; + size_t k; DEVMODE thismode; thismode.dmSize = sizeof(thismode); @@ -2088,7 +2089,7 @@ size_t VID_ListModes(vid_mode_t *modes, size_t maxcount) break; modes[k].width = thismode.dmPelsWidth; modes[k].height = thismode.dmPelsHeight; - modes[k].bpp = thismode.dmBitsPerPixel; + modes[k].bpp = thismode.dmBitsPerPel; modes[k].refreshrate = thismode.dmDisplayFrequency; modes[k].pixelheight_num = 1; modes[k].pixelheight_denom = 1; // Win32 apparently does not provide this (FIXME)