summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpDraw.h
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-21 18:40:08 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-21 18:40:08 -0800
commit127471ef1d7baa4a0ea7e4be2dcbedfeba8e4418 (patch)
treeaa6932b1fb91f8a86bcaf03a50e309835d7f4e47 /xorg/server/module/rdpDraw.h
parente3eeb4acaa58d68c3feda29b0c79021a41e899d7 (diff)
downloadxrdp-proprietary-127471ef1d7baa4a0ea7e4be2dcbedfeba8e4418.tar.gz
xrdp-proprietary-127471ef1d7baa4a0ea7e4be2dcbedfeba8e4418.zip
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpDraw.h')
-rw-r--r--xorg/server/module/rdpDraw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xorg/server/module/rdpDraw.h b/xorg/server/module/rdpDraw.h
index c06f59d7..b471b4d2 100644
--- a/xorg/server/module/rdpDraw.h
+++ b/xorg/server/module/rdpDraw.h
@@ -27,6 +27,12 @@ misc draw calls
#include <xorg-server.h>
#include <xf86.h>
+/* true is drawable is window or pixmap is screen */
+#define XRDP_DRAWABLE_IS_VISIBLE(_dev, _drw) \
+(((_drw)->type == DRAWABLE_WINDOW && ((WindowPtr)(_drw))->viewable) || \
+ ((_drw)->type == DRAWABLE_PIXMAP && \
+ ((PixmapPtr)(_drw))->devPrivate.ptr == (_dev)->pfbMemory))
+
/******************************************************************************/
#define GC_OP_VARS rdpPtr dev; rdpGCPtr priv; GCFuncs *oldFuncs