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

Vittorio Giovara git at videolan.org
Fri Jul 19 12:53:25 CEST 2013


vlc/vlc-2.1 | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Jul 15 18:00:29 2013 +0200| [73e5695014459bd1f8f515f64ebad0ff28d2aadb] | committer: Jean-Baptiste Kempf

draw OSD widgets taking into-account visible display size

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit ea06b760122de866d0fdae76cdf4ed8e4c24d35a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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