From 127471ef1d7baa4a0ea7e4be2dcbedfeba8e4418 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 21 Jan 2014 18:40:08 -0800 Subject: xorg: work on xorg driver --- xorg/server/module/rdpDraw.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xorg/server/module/rdpDraw.h') 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 #include +/* 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 -- cgit v1.2.1