diff options
Diffstat (limited to 'src/sna/gen5_render.c')
-rw-r--r-- | src/sna/gen5_render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index 9b779b67..9b388786 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -1604,7 +1604,6 @@ static void gen5_video_bind_surfaces(struct sna *sna, int n_src, n; uint16_t offset; - src_surf_base[0] = 0; src_surf_base[1] = 0; src_surf_base[2] = frame->VBufOffset; @@ -1665,6 +1664,7 @@ gen5_render_video(struct sna *sna, RegionPtr dstRegion, short src_w, short src_h, short drw_w, short drw_h, + short dx, short dy, PixmapPtr pixmap) { struct sna_composite_op tmp; @@ -1722,8 +1722,8 @@ gen5_render_video(struct sna *sna, pix_yoff = 0; #endif - dxo = dstRegion->extents.x1; - dyo = dstRegion->extents.y1; + dxo = dstRegion->extents.x1 + dx; + dyo = dstRegion->extents.y1 + dy; /* Use normalized texture coordinates */ src_scale_x = ((float)src_w / frame->width) / (float)drw_w; |