summaryrefslogtreecommitdiff
path: root/graphics/imlib2/patches/patch-ad
blob: 2c4fce873b8b056492e7fb669281d58b2c6878ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-ad,v 1.5 2011/01/31 10:22:26 wiz Exp $

Use my_lround() on Interix too.

Add minimalist #ifndef blocks to rip out XShm support on Interix.

--- 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);