*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Feb 2004 16:40:17 +0000
changeset 81026a0e2d69d39
parent 809 dba98fb391e7
child 811 e06ec825242d
*** empty log message ***
src/video/x11/SDL_x11image.c
     1.1 --- a/src/video/x11/SDL_x11image.c	Wed Feb 11 16:10:16 2004 +0000
     1.2 +++ b/src/video/x11/SDL_x11image.c	Wed Feb 11 16:40:17 2004 +0000
     1.3 @@ -44,7 +44,7 @@
     1.4  static int shm_errhandler(Display *d, XErrorEvent *e)
     1.5  {
     1.6          if ( e->error_code == BadAccess ) {
     1.7 -        	shm_error = 1;
     1.8 +        	shm_error = True;
     1.9          	return(0);
    1.10          } else
    1.11  		return(X_handler(d,e));
    1.12 @@ -65,7 +65,7 @@
    1.13  			XShmAttach(SDL_Display, &shminfo);
    1.14  			XSync(SDL_Display, True);
    1.15  			XSetErrorHandler(X_handler);
    1.16 -			if (shm_error)
    1.17 +			if ( shm_error )
    1.18  				shmdt(shminfo.shmaddr);
    1.19  		} else {
    1.20  			shm_error = True;