Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11render.c @ 3239:ab5aebd50add
Fix suggested by Bob
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 20 Aug 2009 04:40:02 +0000 |
parents | 8cbf68bdf81b |
children | 83518f8fcd61 |
comparison
equal
deleted
inserted
replaced
3238:96492d29034a | 3239:ab5aebd50add |
---|---|
357 shminfo->readOnly = False; | 357 shminfo->readOnly = False; |
358 if (shminfo->shmaddr != (char *) -1) { | 358 if (shminfo->shmaddr != (char *) -1) { |
359 shm_error = False; | 359 shm_error = False; |
360 X_handler = XSetErrorHandler(shm_errhandler); | 360 X_handler = XSetErrorHandler(shm_errhandler); |
361 XShmAttach(renderdata->display, shminfo); | 361 XShmAttach(renderdata->display, shminfo); |
362 XSync(renderdata->display, True); | 362 XSync(renderdata->display, False); |
363 XSetErrorHandler(X_handler); | 363 XSetErrorHandler(X_handler); |
364 if (shm_error) { | 364 if (shm_error) { |
365 shmdt(shminfo->shmaddr); | 365 shmdt(shminfo->shmaddr); |
366 } | 366 } |
367 } | 367 } |