diff mbox

Xv overlay: fix planar YUV copy for right rotated crtcs

Message ID 1255536548-11137-1-git-send-email-daniel.vetter@ffwll.ch (mailing list archive)
State Accepted
Headers show

Commit Message

Daniel Vetter Oct. 14, 2009, 4:09 p.m. UTC
None
diff mbox

Patch

diff --git a/src/i830_video.c b/src/i830_video.c
index aaaf78f..e376385 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -888,13 +888,13 @@  I830CopyPackedData(intel_adaptor_private *adaptor_priv,
 				dst[(((h - i) * 2) - 3) + (j * dstPitch)] =
 				    src[(j * 2) + 1 + (i * srcPitch)];
 				dst[(((h - i) * 2) - 3) +
-				    ((j - 1) * dstPitch)] =
+				    ((j + 1) * dstPitch)] =
 				    src[(j * 2) + 1 + ((i + 1) * srcPitch)];
 				/* Copy V */
 				dst[(((h - i) * 2) - 1) + (j * dstPitch)] =
 				    src[(j * 2) + 3 + (i * srcPitch)];
 				dst[(((h - i) * 2) - 1) +
-				    ((j - 1) * dstPitch)] =
+				    ((j + 1) * dstPitch)] =
 				    src[(j * 2) + 3 + ((i + 1) * srcPitch)];
 			}
 		}