Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 11, 2004
1 parent ea2b9bf commit d7d4f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11image.c
Expand Up @@ -44,7 +44,7 @@ static int (*X_handler)(Display *, XErrorEvent *) = NULL;
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));
Expand All @@ -65,7 +65,7 @@ static void try_mitshm(_THIS, SDL_Surface *screen)
XShmAttach(SDL_Display, &shminfo);
XSync(SDL_Display, True);
XSetErrorHandler(X_handler);
if (shm_error)
if ( shm_error )
shmdt(shminfo.shmaddr);
} else {
shm_error = True;
Expand Down

0 comments on commit d7d4f34

Please sign in to comment.