changeset 810:26a0e2d69d39

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Wed, 11 Feb 2004 16:40:17 +0000
parents dba98fb391e7
children e06ec825242d
files src/video/x11/SDL_x11image.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;