*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40811
This commit is contained in:
parent
6858c59ad0
commit
7158e313c2
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ static int (*X_handler)(Display *, XErrorEvent *) = NULL;
|
||||||
static int shm_errhandler(Display *d, XErrorEvent *e)
|
static int shm_errhandler(Display *d, XErrorEvent *e)
|
||||||
{
|
{
|
||||||
if ( e->error_code == BadAccess ) {
|
if ( e->error_code == BadAccess ) {
|
||||||
shm_error = 1;
|
shm_error = True;
|
||||||
return(0);
|
return(0);
|
||||||
} else
|
} else
|
||||||
return(X_handler(d,e));
|
return(X_handler(d,e));
|
||||||
|
@ -65,7 +65,7 @@ static void try_mitshm(_THIS, SDL_Surface *screen)
|
||||||
XShmAttach(SDL_Display, &shminfo);
|
XShmAttach(SDL_Display, &shminfo);
|
||||||
XSync(SDL_Display, True);
|
XSync(SDL_Display, True);
|
||||||
XSetErrorHandler(X_handler);
|
XSetErrorHandler(X_handler);
|
||||||
if (shm_error)
|
if ( shm_error )
|
||||||
shmdt(shminfo.shmaddr);
|
shmdt(shminfo.shmaddr);
|
||||||
} else {
|
} else {
|
||||||
shm_error = True;
|
shm_error = True;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue