comparison 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
comparison
equal deleted inserted replaced
1904:1a713f9d1f71 1905:36d52b1f0504
138 int 138 int
139 WIN_VideoInit(_THIS) 139 WIN_VideoInit(_THIS)
140 { 140 {
141 WIN_InitModes(_this); 141 WIN_InitModes(_this);
142 142
143 #if SDL_VIDEO_RENDER_D3D
144 D3D_AddRenderDriver(_this);
145 #endif
143 #if SDL_VIDEO_RENDER_GDI 146 #if SDL_VIDEO_RENDER_GDI
144 GDI_AddRenderDriver(_this); 147 GDI_AddRenderDriver(_this);
145 #endif
146 #if SDL_VIDEO_RENDER_D3D
147 D3D_AddRenderDriver(_this);
148 #endif 148 #endif
149 149
150 WIN_InitKeyboard(_this); 150 WIN_InitKeyboard(_this);
151 WIN_InitMouse(_this); 151 WIN_InitMouse(_this);
152 152