search for: screen_y

Displaying 3 results from an estimated 3 matches for "screen_y".

2015 Jul 14
3
[PATCH] avoid build fail without COMPOSITE
...; @@ -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->y - pPix->screen_y; + off_x = pDraw->x; + off_y = pDraw->y; +#ifdef COMPOSITE + pPix = get_drawable_pixmap(pDraw); + off_x -= pPix->screen_x; + off_y -= pPix->screen_y; +#endif } pGC = GetScratchGC(pDraw->depth, pScreen); @@ -194,8 +199,8 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, Drawa...
2015 Jul 14
2
[PATCH] avoid build fail without COMPOSITE
...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, pScreen); Now I sort of assume that pDraw->x == pWin->origin.x. But... who knows. -ilia On Tue, Jul 14, 2015 at 5:46 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote: > On 14 July 2015 at 22:17, Ilia Mirkin <imirki...
2010 Jul 29
1
[PATCH] Reflow logic to make it easier to follow
...the hw overlay, we're rendering into a pixmap + * and need to take a couple of additional steps... + */ + PixmapPtr ppix = NVGetDrawablePixmap(pDraw); /* Ensure pixmap is in offscreen memory */ pNv->exa_force_cp = TRUE; @@ -1274,69 +1291,48 @@ CPU_copy: dstBox.y2 -= ppix->screen_y; } #endif - } - - if (action_flags & USE_OVERLAY) { - if (pNv->Architecture == NV_ARCH_04) { - NV04PutOverlayImage(pScrn, pPriv->video_mem, offset, - id, dstPitch, &dstBox, 0, 0, - xb, yb, npixels, nlines, - src_w, src_h, drw_w, drw_h, - clipBoxe...