From 6fb1946573c6294e85bae2a6f6c18259f9986247 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 5 Aug 2009 13:36:58 +0000 Subject: [PATCH] fixes for vid_wgl git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9092 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_wgl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2