comparison src/video/x11/SDL_x11video.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 81773a1eac83
children f7b03b6838cb
comparison
equal deleted inserted replaced
3520:83518f8fcd61 3521:76f9b76ddf0f
253 253
254 /* Look up some useful Atoms */ 254 /* Look up some useful Atoms */
255 data->WM_DELETE_WINDOW = 255 data->WM_DELETE_WINDOW =
256 XInternAtom(data->display, "WM_DELETE_WINDOW", False); 256 XInternAtom(data->display, "WM_DELETE_WINDOW", False);
257 257
258 X11_InitModes(_this); 258 if (X11_InitModes(_this) < 0) {
259 return -1;
260 }
259 261
260 #if SDL_VIDEO_RENDER_X11 262 #if SDL_VIDEO_RENDER_X11
261 X11_AddRenderDriver(_this); 263 X11_AddRenderDriver(_this);
262 #endif 264 #endif
263 265