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/rdpRandR.c | |
parent | 2515caa66a37409f32bbfff552bb370b43f9701a (diff) | |
download | xrdp-proprietary-61d51cea601e9c0daf74f404d939aeeaf678c1b1.tar.gz xrdp-proprietary-61d51cea601e9c0daf74f404d939aeeaf678c1b1.zip |
xorg driver, PROLOGUE / EPILOGUE changes
Diffstat (limited to 'xorg/server/module/rdpRandR.c')
-rw-r--r-- | xorg/server/module/rdpRandR.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/xorg/server/module/rdpRandR.c b/xorg/server/module/rdpRandR.c index 2255d33a..ad3808bd 100644 --- a/xorg/server/module/rdpRandR.c +++ b/xorg/server/module/rdpRandR.c @@ -79,12 +79,10 @@ rdpRRGetInfo(ScreenPtr pScreen, Rotation *pRotations) { int width; int height; - ScrnInfoPtr pScrn; rdpPtr dev; LLOGLN(0, ("rdpRRGetInfo:")); - pScrn = xf86Screens[pScreen->myNum]; - dev = XRDPPTR(pScrn); + dev = rdpGetDevFromScreen(pScreen); *pRotations = RR_Rotate_0; width = dev->width; height = dev->height; @@ -100,13 +98,11 @@ rdpRRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height, WindowPtr root; PixmapPtr screenPixmap; BoxRec box; - ScrnInfoPtr pScrn; rdpPtr dev; LLOGLN(0, ("rdpRRScreenSetSize: width %d height %d mmWidth %d mmHeight %d", width, height, (int)mmWidth, (int)mmHeight)); - pScrn = xf86Screens[pScreen->myNum]; - dev = XRDPPTR(pScrn); + dev = rdpGetDevFromScreen(pScreen); root = rdpGetRootWindowPtr(pScreen); if ((width < 1) || (height < 1)) { @@ -228,12 +224,10 @@ Bool rdpRRGetPanning(ScreenPtr pScreen, RRCrtcPtr crtc, BoxPtr totalArea, BoxPtr trackingArea, INT16 *border) { - ScrnInfoPtr pScrn; rdpPtr dev; LLOGLN(0, ("rdpRRGetPanning: %p", crtc)); - pScrn = xf86Screens[pScreen->myNum]; - dev = XRDPPTR(pScrn); + dev = rdpGetDevFromScreen(pScreen); if (totalArea != 0) { |