foxygit / doom Log in
commit 1d6a613b1dad36a97b7ff86eff551de2dd6a4238
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Nov 10 07:50:26 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Nov 10 07:50:26 2006 +0000

    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