$NetBSD: patch-ad,v 1.4 2005/11/04 20:11:47 tv Exp $ --- src/lib/rend.c.orig 2004-11-01 04:39:42.000000000 -0500 +++ src/lib/rend.c @@ -495,24 +495,30 @@ __imlib_RenderImage(Display * d, ImlibIm gcm = XCreateGC(d, m, GCGraphicsExposures, &gcv); } /* write the mask */ +#ifndef __INTERIX if (shm) /* write shm XImage */ XShmPutImage(d, m, gcm, mxim, 0, 0, dx, dy, dw, dh, False); /* write regular XImage */ else +#endif /* !__INTERIX */ XPutImage(d, m, gcm, mxim, 0, 0, dx, dy, dw, dh); } /* write the image */ +#ifndef __INTERIX if (shm) /* write shm XImage */ XShmPutImage(d, w, gc, xim, 0, 0, dx, dy, dw, dh, False); /* write regular XImage */ else +#endif /* !__INTERIX */ XPutImage(d, w, gc, xim, 0, 0, dx, dy, dw, dh); /* free the XImage and put onto our free list */ /* wait for the write to be done */ +#ifndef __INTERIX if (shm) XSync(d, False); +#endif /* !__INTERIX */ __imlib_ConsumeXImage(d, xim); if (m) __imlib_ConsumeXImage(d, mxim);