X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fvideo_widgets.c;h=562d8a69ce29ce3bae97d510513d45ab2f3d1554;hb=0aebd65691ffa6427f13500adc65f5fc1fd8f8d0;hp=1bd5189ca9f59eec49937486ad8bec2e2c985e84;hpb=2cb472dba008f7d877ffe6bae9c5575253365282;p=vlc diff --git a/src/video_output/video_widgets.c b/src/video_output/video_widgets.c index 1bd5189ca9..562d8a69ce 100644 --- a/src/video_output/video_widgets.c +++ b/src/video_output/video_widgets.c @@ -24,12 +24,15 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include /* free() */ -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include #include -#include "vlc_video.h" -#include "vlc_filter.h" +#include /***************************************************************************** * Displays an OSD slider. @@ -44,7 +47,10 @@ void vout_OSDSlider( vlc_object_t *p_caller, int i_channel, int i_position, if( p_vout && ( config_GetInt( p_caller, "osd" ) || ( i_position >= 0 ) ) ) { osd_Slider( p_caller, p_vout->p_spu, p_vout->render.i_width, - p_vout->render.i_height, i_channel, i_position, i_type ); + p_vout->render.i_height, p_vout->fmt_in.i_x_offset, + p_vout->fmt_in.i_height - p_vout->fmt_in.i_visible_height + - p_vout->fmt_in.i_y_offset, + i_channel, i_position, i_type ); } vlc_object_release( p_vout ); } @@ -62,8 +68,14 @@ void vout_OSDIcon( vlc_object_t *p_caller, int i_channel, short i_type ) if( config_GetInt( p_caller, "osd" ) ) { - osd_Icon( p_caller, p_vout->p_spu, p_vout->render.i_width, - p_vout->render.i_height, i_channel, i_type ); + osd_Icon( p_caller, + p_vout->p_spu, + p_vout->render.i_width, + p_vout->render.i_height, + p_vout->fmt_in.i_width - p_vout->fmt_in.i_visible_width + - p_vout->fmt_in.i_x_offset, + p_vout->fmt_in.i_y_offset, + i_channel, i_type ); } vlc_object_release( p_vout ); }