From 1d6a613b1dad36a97b7ff86eff551de2dd6a4238 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 10 Nov 2006 07:50:26 +0000 Subject: Add -gdi command line parameter as a shortcut for SDL_VIDEODRIVER=windib on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 748 --- src/i_video.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/i_video.c b/src/i_video.c index fe3ab980..6604ca04 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1048,6 +1048,13 @@ void I_InitGraphics(void) #ifdef _WIN32 + // Allow -gdi as a shortcut for using the windib driver. + + if (M_CheckParm("-gdi") > 0) + { + SDL_putenv("SDL_VIDEODRIVER=windib"); + } + // From the SDL 1.2.10 release notes: // // > The "windib" video driver is the default now, to prevent -- cgit v1.2.3