qemacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-devel] [PATCH] no X11 shm


From: François Revol
Subject: [Qemacs-devel] [PATCH] no X11 shm
Date: Sat, 21 May 2016 23:31:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

I had to work fix missing #ifdefs here, as for some reason configure
here doesn't detect shm extensions.

François.

Index: x11.c
===================================================================
RCS file: /sources/qemacs/qemacs/x11.c,v
retrieving revision 1.40
diff -u -r1.40 x11.c
--- x11.c       7 Mar 2016 10:35:23 -0000       1.40
+++ x11.c       21 May 2016 21:31:02 -0000
@@ -1563,9 +1563,11 @@
     if (b->flags & QEBITMAP_FLAG_VIDEO) {
 #if defined(CONFIG_XV)
         if (xv_port != 0 && xv_open_count == 0) {
+#ifdef CONFIG_XSHM
             if (shm_use)
                 xb->type = BMP_XVSHMIMAGE;
             else
+#endif
                 xb->type = BMP_XVIMAGE;
             b->format = s->video_format;
             xv_open_count++;
@@ -1639,6 +1641,7 @@
             xb->u.xvimage = xvimage;
         }
         break;
+#ifdef CONFIG_XSHM
     case BMP_XVSHMIMAGE:
         {
             XvImage *xvimage;
@@ -1664,6 +1667,7 @@
         }
         break;
 #endif
+#endif
     }
     return 0;
  fail:
@@ -1697,6 +1701,7 @@
         XFree(xb->u.xvimage);
         xv_open_count--;
         break;
+#ifdef CONFIG_XSHM
     case BMP_XVSHMIMAGE:
         XShmDetach(display, xb->shm_info);
         XFree(xb->u.xvimage);
@@ -1705,6 +1710,7 @@
         xv_open_count--;
         break;
 #endif
+#endif
     }
     qe_free(&b->priv_data);
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]