diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-01-21 18:40:08 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-01-21 18:40:08 -0800 |
commit | 127471ef1d7baa4a0ea7e4be2dcbedfeba8e4418 (patch) | |
tree | aa6932b1fb91f8a86bcaf03a50e309835d7f4e47 /xorg/server/module/rdpDraw.h | |
parent | e3eeb4acaa58d68c3feda29b0c79021a41e899d7 (diff) | |
download | xrdp-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.h | 6 |
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 |