summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-11-10 07:50:26 +0000
committerSimon Howard2006-11-10 07:50:26 +0000
commit1d6a613b1dad36a97b7ff86eff551de2dd6a4238 (patch)
tree23c7da8ea3cf705343249dbc6a5ea8699405ea52
parentd0d6c7293373af193bc99989e64f1d5eadba4f31 (diff)
downloadchocolate-doom-1d6a613b1dad36a97b7ff86eff551de2dd6a4238.tar.gz
chocolate-doom-1d6a613b1dad36a97b7ff86eff551de2dd6a4238.tar.bz2
chocolate-doom-1d6a613b1dad36a97b7ff86eff551de2dd6a4238.zip
Add -gdi command line parameter as a shortcut for SDL_VIDEODRIVER=windib
on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 748
-rw-r--r--src/i_video.c7
1 files changed, 7 insertions, 0 deletions
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