[vlc-commits] kva: set visible region correctly
KO Myung-Hun
git at videolan.org
Sat Nov 29 12:34:46 CET 2014
vlc/vlc-2.2 | branch: master | KO Myung-Hun <komh78 at gmail.com> | Thu Nov 27 06:30:38 2014 +0000| [269d85c52f37bf0a468edb3ecab49bec4e2b4dc6] | committer: Jean-Baptiste Kempf
kva: set visible region correctly
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 58b2cc3f168d8e8693cb21314a517c04aebd7de3)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=269d85c52f37bf0a468edb3ecab49bec4e2b4dc6
---
modules/video_output/kva.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index b90f431..fc46009 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -645,10 +645,10 @@ static int OpenDisplay( vout_display_t *vd, video_format_t *fmt )
sys->kvas.ulLength = sizeof( KVASETUP );
sys->kvas.szlSrcSize.cx = w;
sys->kvas.szlSrcSize.cy = h;
- sys->kvas.rclSrcRect.xLeft = 0;
- sys->kvas.rclSrcRect.yTop = 0;
- sys->kvas.rclSrcRect.xRight = w;
- sys->kvas.rclSrcRect.yBottom = h;
+ sys->kvas.rclSrcRect.xLeft = fmt->i_x_offset;
+ sys->kvas.rclSrcRect.yTop = fmt->i_y_offset;
+ sys->kvas.rclSrcRect.xRight = fmt->i_x_offset + fmt->i_visible_width;
+ sys->kvas.rclSrcRect.yBottom = fmt->i_y_offset + fmt->i_visible_height;
sys->kvas.ulRatio = KVAR_FORCEANY;
sys->kvas.ulAspectWidth = w;
sys->kvas.ulAspectHeight = h;
More information about the vlc-commits
mailing list