while (PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE))
{
- // we always update if there are any event, even if we're paused
- scr_skipupdate = 0;
-
if (!GetMessage (&msg, NULL, 0, 0))
Sys_Quit ();
@@ -779,7+782,6 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp)
};
int pixelformat;
DWORD WindowStyle, ExWindowStyle;
- HGLRC baseRC;
int CenterX, CenterY;
const char *gldrivername;
int depth;
@@ -800,6+802,7 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp)
}
gldrivername = "opengl32.dll";
+// COMMANDLINEOPTION: Windows WGL: -gl_driver <drivername> selects a GL driver library, default is opengl32.dll, useful only for 3dfxogl.dll or 3dfxvgl.dll, if you don't know what this is for, you don't need it
i = COM_CheckParm("-gl_driver");
if (i && i < com_argc - 1)
gldrivername = com_argv[i + 1];
@@ -923,19+926,19 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp)
// fix the leftover Alt from any Alt-Tab or the like that switched us away
ClearAllStates ();
- hdc = GetDC(mainwindow);
+ baseDC = GetDC(mainwindow);
- if ((pixelformat = ChoosePixelFormat(hdc, &pfd)) == 0)
+ if ((pixelformat = ChoosePixelFormat(baseDC, &pfd)) == 0)