diff src/video/win32/SDL_win32video.c @ 1905:36d52b1f0504

Prefer the D3D renderer over GDI, at least for testing. Added support for the SDL_VIDEO_RENDERER environment variable to pick the desired render driver. Implemented WritePixels support for the D3D renderer.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Jul 2006 08:22:45 +0000
parents c121d94672cb
children 83420da906a5
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.c	Fri Jul 14 07:41:16 2006 +0000
+++ b/src/video/win32/SDL_win32video.c	Fri Jul 14 08:22:45 2006 +0000
@@ -140,12 +140,12 @@
 {
     WIN_InitModes(_this);
 
+#if SDL_VIDEO_RENDER_D3D
+    D3D_AddRenderDriver(_this);
+#endif
 #if SDL_VIDEO_RENDER_GDI
     GDI_AddRenderDriver(_this);
 #endif
-#if SDL_VIDEO_RENDER_D3D
-    D3D_AddRenderDriver(_this);
-#endif
 
     WIN_InitKeyboard(_this);
     WIN_InitMouse(_this);