comparison src/video/win32/SDL_win32video.c @ 3521:76f9b76ddf0f

Don't add any renderers if you can't add any displays
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 09:01:48 +0000
parents 6338b7f2d024
children 59ff7a2beb57
comparison
equal deleted inserted replaced
3520:83518f8fcd61 3521:76f9b76ddf0f
205 205
206 206
207 int 207 int
208 WIN_VideoInit(_THIS) 208 WIN_VideoInit(_THIS)
209 { 209 {
210 WIN_InitModes(_this); 210 if (WIN_InitModes(_this) < 0) {
211 return -1;
212 }
211 213
212 #if SDL_VIDEO_RENDER_D3D 214 #if SDL_VIDEO_RENDER_D3D
213 D3D_AddRenderDriver(_this); 215 D3D_AddRenderDriver(_this);
214 #endif 216 #endif
215 #if SDL_VIDEO_RENDER_DDRAW 217 #if SDL_VIDEO_RENDER_DDRAW