ref: d0d6c7293373af193bc99989e64f1d5eadba4f31
parent: 3e9f2abe794b5511e6f913f825c97fe639464c1b
author: Simon Howard <[email protected]>
date: Mon Nov 6 13:04:26 EST 2006
Use DirectX by default on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 747
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1046,6 +1046,23 @@
SDL_Event dummy;
int flags = 0;
+#ifdef _WIN32
+
+ // From the SDL 1.2.10 release notes:
+ //
+ // > The "windib" video driver is the default now, to prevent
+ // > problems with certain laptops, 64-bit Windows, and Windows
+ // > Vista.
+ //
+ // The hell with that.
+
+ if (SDL_getenv("SDL_VIDEODRIVER") == NULL)
+ {
+ SDL_putenv("SDL_VIDEODRIVER=directx");
+ }
+
+#endif
+
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
I_Error("Failed to initialise video: %s", SDL_GetError());