mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 12:21:34 +00:00
applies patch for improved shm debugging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23484 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3b5ee43d94
commit
012ff3eecb
1 changed files with 5 additions and 1 deletions
|
@ -95,6 +95,7 @@ static void test_xshm(Display *display, int drawing_depth)
|
||||||
DefaultVisual(display, DefaultScreen(display)),
|
DefaultVisual(display, DefaultScreen(display)),
|
||||||
drawing_depth, ZPixmap, NULL, &shminfo,
|
drawing_depth, ZPixmap, NULL, &shminfo,
|
||||||
1, 1);
|
1, 1);
|
||||||
|
XSync(display, False);
|
||||||
if (!ximage || num_xshm_test_errors)
|
if (!ximage || num_xshm_test_errors)
|
||||||
{
|
{
|
||||||
NSLog(@"XShm not supported, XShmCreateImage failed.");
|
NSLog(@"XShm not supported, XShmCreateImage failed.");
|
||||||
|
@ -126,7 +127,10 @@ static void test_xshm(Display *display, int drawing_depth)
|
||||||
}
|
}
|
||||||
|
|
||||||
shminfo.readOnly = 0;
|
shminfo.readOnly = 0;
|
||||||
if (!XShmAttach(display, &shminfo) || num_xshm_test_errors)
|
if (!XShmAttach(display, &shminfo))
|
||||||
|
num_xshm_test_errors++;
|
||||||
|
XSync(display, False);
|
||||||
|
if (num_xshm_test_errors)
|
||||||
{
|
{
|
||||||
NSLog(@"XShm not supported, XShmAttach() failed.");
|
NSLog(@"XShm not supported, XShmAttach() failed.");
|
||||||
XDestroyImage(ximage);
|
XDestroyImage(ximage);
|
||||||
|
|
Loading…
Reference in a new issue