Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11image.c @ 810:26a0e2d69d39
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 11 Feb 2004 16:40:17 +0000 |
parents | b8d311d90021 |
children | 045f186426e1 |
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;