[vlc-devel] [PATCH 3/3] draw OSD widgets taking into-account visible display size
Vittorio Giovara
vittorio.giovara at gmail.com
Mon Jul 15 18:00:29 CEST 2013
---
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
--
1.7.9.5
More information about the vlc-devel
mailing list