shithub: choc

Download patch

ref: ad9f8107f4d9d4ea636eb238205f31270cc1514a
parent: 1a54277adf6413026ccd77435601bcb50f1aa169
author: Simon Howard <fraggle@gmail.com>
date: Sun Jun 7 12:35:43 EDT 2009

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

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1568

--- a/setup/display.c
+++ b/setup/display.c
@@ -116,7 +116,7 @@
     }
     else
     {
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(_WIN32_WCE)
         // On Windows, use DirectX over windib by default.
 
         putenv("SDL_VIDEODRIVER=directx");
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1353,7 +1353,7 @@
         free(env_string);
     }
 
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(_WIN32_WCE)
 
     // Allow -gdi as a shortcut for using the windib driver.