From d0d6c7293373af193bc99989e64f1d5eadba4f31 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 6 Nov 2006 18:04:26 +0000 Subject: Use DirectX by default on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 747 --- src/i_video.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src') diff --git a/src/i_video.c b/src/i_video.c index 469b113d..fe3ab980 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1046,6 +1046,23 @@ void I_InitGraphics(void) 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()); -- cgit v1.2.3