foxygit / doom Log in
commit ad9f8107f4d9d4ea636eb238205f31270cc1514a
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Jun 7 16:35:43 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sun Jun 7 16:35:43 2009 +0000

    Don't try to use the SDL DirectX driver under Windows CE.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 1568
---
 setup/display.c | 2 +-
 src/i_video.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup/display.c b/setup/display.c
index 7bcf0d5b..befec91f 100644
--- a/setup/display.c
+++ b/setup/display.c
@@ -116,7 +116,7 @@ void SetDisplayDriver(void)
     }
     else
     {
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(_WIN32_WCE)
         // On Windows, use DirectX over windib by default.

         putenv("SDL_VIDEODRIVER=directx");
diff --git a/src/i_video.c b/src/i_video.c
index 0ed4d716..fa7dfff9 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1353,7 +1353,7 @@ static void SetSDLVideoDriver(void)
         free(env_string);
     }

-#ifdef _WIN32
+#if defined(_WIN32) && !defined(_WIN32_WCE)

     // Allow -gdi as a shortcut for using the windib driver.