diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-18 15:14:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-18 15:14:00 +0000 |
commit | 551b400377ddc5eb1e89b8b5827a42e810c8d23d (patch) | |
tree | 4e407fb65a39987482cb1a159945662de0981fcb /src/sna/sna_video_textured.c | |
parent | d96a226cc59c641c10153ae3a086a5138c852423 (diff) |
sna/video: Amalgamate the computation of source vs dest offsets
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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c index 70ea9319..cc35c57c 100644 --- a/src/sna/sna_video_textured.c +++ b/src/sna/sna_video_textured.c @@ -288,10 +288,8 @@ 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 - clip->extents.x1 - src_x, - drw_y - clip->extents.y1 - src_y, + src_w, src_h, drw_w, drw_h, + drw_x - src_x, drw_y - src_y, pixmap)) { DBG(("%s: failed to render video\n", __FUNCTION__)); ret = BadAlloc; |