summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_textured.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-28 14:35:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-28 21:18:49 +0000
commit89038ddb96aabc4bc1f04402b2aca0ce546e8bf3 (patch)
tree9632a9a2eb30e7754d0b2798926070a1fe3fd639 /src/sna/sna_video_textured.c
parenta0a2faefdefbea63669dfeb49f7e701196ab5631 (diff)
sna/video: Correct scaling of source offsets
When applying pan and zoom to a mismatched video, it would inevitably miscompute the origin and scale factors. Reported-by: Matti Hamalainen <ccr@tnsp.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61610 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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index e5cae859..bd203259 100644
--- a/src/sna/sna_video_textured.c
+++ b/src/sna/sna_video_textured.c
@@ -287,10 +287,7 @@ sna_video_textured_put_image(ScrnInfoPtr scrn,
}
ret = Success;
- if (!sna->render.video(sna, video, &frame, clip,
- src_w, src_h, drw_w, drw_h,
- drw_x - src_x, drw_y - src_y,
- pixmap)) {
+ if (!sna->render.video(sna, video, &frame, clip, pixmap)) {
DBG(("%s: failed to render video\n", __FUNCTION__));
ret = BadAlloc;
} else