ref: 1d6a613b1dad36a97b7ff86eff551de2dd6a4238
parent: d0d6c7293373af193bc99989e64f1d5eadba4f31
author: Simon Howard <fraggle@gmail.com>
date: Fri Nov 10 02:50:26 EST 2006
Add -gdi command line parameter as a shortcut for SDL_VIDEODRIVER=windib on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 748
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1048,6 +1048,13 @@
#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