search for: off_x

Displaying 2 results from an estimated 2 matches for "off_x".

Did you mean: off_t
2015 Jul 14
3
[PATCH] avoid build fail without COMPOSITE
...ri2.c +++ b/src/nouveau_dri2.c @@ -142,6 +142,7 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegio NVPtr pNv = NVPTR(xf86ScreenToScrn(pScreen)); RegionPtr pCopyClip; GCPtr pGC; + PixmapPtr pPix; DrawablePtr src_draw, dst_draw; Bool translate = FALSE; int off_x = 0, off_y = 0; @@ -170,9 +171,13 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegio } if (translate && pDraw->type == DRAWABLE_WINDOW) { - PixmapPtr pPix = get_drawable_pixmap(pDraw); - off_x = pDraw->x - pPix->screen_x; - off_y = pDraw-&g...
2015 Jul 14
2
[PATCH] avoid build fail without COMPOSITE
...c +++ b/src/nouveau_dri2.c @@ -165,9 +165,9 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegio translate = TRUE; if (translate && pDraw->type == DRAWABLE_WINDOW) { - WindowPtr pWin = (WindowPtr)pDraw; - off_x = pWin->origin.x; - off_y = pWin->origin.y; + PixmapPtr pPix = get_drawable_pixmap(pDraw); + off_x = pDraw->x - pPix->screen_x; + off_y = pDraw->y - pPix->screen_y; } pGC = GetScratchGC(pDraw->depth, pScre...