*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Feb 2004 16:40:17 +0000
changeset 810 26a0e2d69d39
parent 809 dba98fb391e7
child 811 e06ec825242d
*** empty log message ***
src/video/x11/SDL_x11image.c
--- a/src/video/x11/SDL_x11image.c	Wed Feb 11 16:10:16 2004 +0000
+++ b/src/video/x11/SDL_x11image.c	Wed Feb 11 16:40:17 2004 +0000
@@ -44,7 +44,7 @@
 static int shm_errhandler(Display *d, XErrorEvent *e)
 {
         if ( e->error_code == BadAccess ) {
-        	shm_error = 1;
+        	shm_error = True;
         	return(0);
         } else
 		return(X_handler(d,e));
@@ -65,7 +65,7 @@
 			XShmAttach(SDL_Display, &shminfo);
 			XSync(SDL_Display, True);
 			XSetErrorHandler(X_handler);
-			if (shm_error)
+			if ( shm_error )
 				shmdt(shminfo.shmaddr);
 		} else {
 			shm_error = True;