comparison src/video/x11/SDL_x11video.c @ 4210:8f501bbc3bf1 SDL-1.2

Fixed bug #571.. I think. :) It certainly can't hurt!
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 07:59:44 +0000
parents a1b03ba2fcd0
children 50b4ab8f8271
comparison
equal deleted inserted replaced
4209:62e86ab81e3c 4210:8f501bbc3bf1
236 static int xio_errhandler(Display *d) 236 static int xio_errhandler(Display *d)
237 { 237 {
238 /* Ack! Lost X11 connection! */ 238 /* Ack! Lost X11 connection! */
239 239
240 /* We will crash if we try to clean up our display */ 240 /* We will crash if we try to clean up our display */
241 if ( current_video->hidden->Ximage ) { 241 if ( SDL_VideoSurface && current_video->hidden->Ximage ) {
242 SDL_VideoSurface->pixels = NULL; 242 SDL_VideoSurface->pixels = NULL;
243 } 243 }
244 current_video->hidden->X11_Display = NULL; 244 current_video->hidden->X11_Display = NULL;
245 245
246 /* Continue with the standard X11 error handler */ 246 /* Continue with the standard X11 error handler */