[vlc-commits] kva: set visible region correctly
KO Myung-Hun
git at videolan.org
Fri Nov 28 12:02:50 CET 2014
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Thu Nov 27 06:30:38 2014 +0000| [58b2cc3f168d8e8693cb21314a517c04aebd7de3] | committer: Jean-Baptiste Kempf
kva: set visible region correctly
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=58b2cc3f168d8e8693cb21314a517c04aebd7de3
---
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 f8000c7..eb9aed4 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -606,10 +606,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