Commit 9fd29492 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

winex11.drv: Add support for XShm pixmaps.

Most of this is "Copyright 2004 Huw Davies for CodeWeavers", I just did a little bit of integration.
parent 4c1b3de9
...@@ -92,6 +92,13 @@ typedef struct ...@@ -92,6 +92,13 @@ typedef struct
Pixmap pixmap; Pixmap pixmap;
} X_PHYSBRUSH; } X_PHYSBRUSH;
enum x11drv_shm_mode
{
X11DRV_SHM_NONE = 0,
X11DRV_SHM_PIXMAP,
X11DRV_SHM_IMAGE,
};
/* X physical bitmap */ /* X physical bitmap */
typedef struct typedef struct
{ {
...@@ -105,6 +112,7 @@ typedef struct ...@@ -105,6 +112,7 @@ typedef struct
int *colorMap; /* color map info */ int *colorMap; /* color map info */
int nColorMap; int nColorMap;
CRITICAL_SECTION lock; /* GDI access lock */ CRITICAL_SECTION lock; /* GDI access lock */
enum x11drv_shm_mode shm_mode;
#ifdef HAVE_LIBXXSHM #ifdef HAVE_LIBXXSHM
XShmSegmentInfo shminfo; /* shared memory segment info */ XShmSegmentInfo shminfo; /* shared memory segment info */
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment