summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_textured.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-12-18 14:26:18 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-12-18 14:26:18 +0000
commitd96a226cc59c641c10153ae3a086a5138c852423 (patch)
treefc853a05376e26466043c70fe18129bb3e2520e3 /src/sna/sna_video_textured.c
parent79cb6304e983514dd754065e65e2381a903f9bd6 (diff)
sna/video: Fix adjustment of drawable vs source origin wrt to clip
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_textured.c')
-rw-r--r--src/sna/sna_video_textured.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index f37b4ef6..70ea9319 100644
--- a/src/sna/sna_video_textured.c
+++ b/src/sna/sna_video_textured.c
@@ -290,7 +290,8 @@ sna_video_textured_put_image(ScrnInfoPtr scrn,
if (!sna->render.video(sna, video, &frame, clip,
src_w, src_h,
drw_w, drw_h,
- drw_x - src_x, drw_y - src_y,
+ drw_x - clip->extents.x1 - src_x,
+ drw_y - clip->extents.y1 - src_y,
pixmap)) {
DBG(("%s: failed to render video\n", __FUNCTION__));
ret = BadAlloc;