summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpDraw.h
diff options
context:
space:
mode:
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