From b838aa8a554d615f079afa0e0f678a947d0b9b42 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Fri, 26 Jun 2009 18:03:53 +0200 Subject: [PATCH] Fix video overlay on interlaced modes. --- src/nv10_xv_ovl.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/nv10_xv_ovl.c b/src/nv10_xv_ovl.c index 5dc696c..0542e36 100644 --- a/src/nv10_xv_ovl.c +++ b/src/nv10_xv_ovl.c @@ -84,6 +84,11 @@ NV10PutOverlayImage(ScrnInfoPtr pScrn, dstBox->y2 <<= 1; drw_h <<= 1; } + if (crtc->mode.Flags & V_INTERLACE) { + dstBox->y1 >>= 1; + dstBox->y2 >>= 1; + drw_h >>= 1; + } } /* paint the color key */ -- 1.6.0.6