diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-07-31 00:41:44 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-07-31 00:41:44 -0700 |
commit | 61d51cea601e9c0daf74f404d939aeeaf678c1b1 (patch) | |
tree | 848bdbae66561807da4d57a72a2735f667577df3 /xorg/server/module/rdpDraw.h | |
parent | 2515caa66a37409f32bbfff552bb370b43f9701a (diff) | |
download | xrdp-proprietary-61d51cea601e9c0daf74f404d939aeeaf678c1b1.tar.gz xrdp-proprietary-61d51cea601e9c0daf74f404d939aeeaf678c1b1.zip |
xorg driver, PROLOGUE / EPILOGUE changes
Diffstat (limited to 'xorg/server/module/rdpDraw.h')
-rw-r--r-- | xorg/server/module/rdpDraw.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xorg/server/module/rdpDraw.h b/xorg/server/module/rdpDraw.h index 0b77abde..e2711768 100644 --- a/xorg/server/module/rdpDraw.h +++ b/xorg/server/module/rdpDraw.h @@ -28,14 +28,12 @@ misc draw calls #include <xf86.h> /******************************************************************************/ +#define GC_OP_VARS rdpPtr dev; rdpGCPtr priv; GCFuncs *oldFuncs + +/******************************************************************************/ #define GC_OP_PROLOGUE(_pGC) \ do { \ - rdpPtr dev; \ - ScreenPtr pScreen; \ - ScrnInfoPtr pScrn; \ - pScreen = (_pGC)->pScreen; \ - pScrn = xf86Screens[pScreen->myNum]; \ - dev = XRDPPTR(pScrn); \ + dev = rdpGetDevFromScreen((_pGC)->pScreen); \ priv = (rdpGCPtr)rdpGetGCPrivate(_pGC, dev->privateKeyRecGC); \ oldFuncs = (_pGC)->funcs; \ (_pGC)->funcs = priv->funcs; \ @@ -58,5 +56,7 @@ Bool rdpCloseScreen(int index, ScreenPtr pScreen); WindowPtr rdpGetRootWindowPtr(ScreenPtr pScreen); +rdpPtr +rdpGetDevFromScreen(ScreenPtr pScreen); #endif |