st/xorg: fix src coordinates in the video acceleration paths
authorZack Rusin <zackr@vmware.com>
Sun, 25 Oct 2009 23:47:41 +0000 (19:47 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 28 Oct 2009 20:53:50 +0000 (16:53 -0400)
src/gallium/state_trackers/xorg/xorg_xv.c

index 2a3a42bdeaf760f657c89b67dde53119125651e3..c3d9454245b052bf176b5f65091568f3bf8278b0 100644 (file)
@@ -484,7 +484,7 @@ display_video(ScrnInfoPtr pScrn, struct xorg_xv_port_priv *pPriv, int id,
       w = box_x2 - box_x1;
       h = box_y2 - box_y1;
 
-      draw_yuv(pPriv, x, y, x, y, w, h);
+      draw_yuv(pPriv, src_x, src_y, x, y, w, h);
 
       pbox++;
    }