mirror of
https://github.com/joel16/SDL2.git
synced 2025-03-04 01:17:05 +00:00
*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40811
This commit is contained in:
parent
6858c59ad0
commit
7158e313c2
@ -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));
|
||||
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user