[vlc-commits] draw OSD widgets taking into-account visible display size

Vittorio Giovara git at videolan.org
Tue Jul 16 19:05:38 CEST 2013


vlc | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Jul 15 18:00:29 2013 +0200| [ea06b760122de866d0fdae76cdf4ed8e4c24d35a] | committer: Rémi Denis-Courmont

draw OSD widgets taking into-account visible display size

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea06b760122de866d0fdae76cdf4ed8e4c24d35a
---

 src/video_output/video_widgets.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_widgets.c b/src/video_output/video_widgets.c
index cdddac5..201f907 100644
--- a/src/video_output/video_widgets.c
+++ b/src/video_output/video_widgets.c
@@ -275,8 +275,8 @@ static void OSDWidgetUpdate(subpicture_t *subpic,
     fmt.i_sar_num       = 1;
     fmt.i_sar_den       = 1;
 
-    subpic->i_original_picture_width  = fmt.i_width;
-    subpic->i_original_picture_height = fmt.i_height;
+    subpic->i_original_picture_width  = fmt.i_visible_width;
+    subpic->i_original_picture_height = fmt.i_visible_height;
     if (sys->type == OSD_HOR_SLIDER || sys->type == OSD_VERT_SLIDER)
         subpic->p_region = OSDSlider(sys->type, sys->position, &fmt);
     else



More information about the vlc-commits mailing list