[PATCH 07/11] randr: Cleanup rrSetupPixmapSharing()

Alex Goins agoins at nvidia.com
Wed Nov 25 18:39:31 PST 2015


protopix is completely redundant with mscreenpix. Get rid of it.

We don't need rrScrPriv, so remove it.

Signed-off-by: Alex Goins <agoins at nvidia.com>
---
 randr/rrcrtc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index a6b56f4..7f2a315 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -467,8 +467,6 @@ rrSetupPixmapSharing(RRCrtcPtr crtc, int width, int height,
     ScreenPtr master = crtc->pScreen->current_master;
     int depth;
     PixmapPtr mscreenpix;
-    PixmapPtr protopix = master->GetScreenPixmap(master);
-    rrScrPriv(crtc->pScreen);
     PixmapPtr spix_front;
 
     /* create a pixmap on the master screen,
@@ -484,7 +482,7 @@ rrSetupPixmapSharing(RRCrtcPtr crtc, int width, int height,
     */
 
     mscreenpix = master->GetScreenPixmap(master);
-    depth = protopix->drawable.depth;
+    depth = mscreenpix->drawable.depth;
 
     if (crtc->scanout_pixmap)
         RRCrtcDetachScanoutPixmap(crtc);
-- 
1.9.1



More information about the xorg-devel mailing list