]> git.sesse.net Git - vlc/blobdiff - src/video_output/video_text.c
Fix OSD display when vout crop is used (so that every thing stays on the displayed...
[vlc] / src / video_output / video_text.c
index 3fcdc5b3663fa1eff0ea04f6658cebae910a88e2..80a1b7294677321056739c78beaf61b004e2b6e2 100644 (file)
@@ -129,7 +129,11 @@ void __vout_OSDMessage( vlc_object_t *p_caller, int i_channel,
         vasprintf( &psz_string, psz_format, args );
 
         vout_ShowTextRelative( p_vout, i_channel, psz_string, NULL,
-                               OSD_ALIGN_TOP|OSD_ALIGN_RIGHT, 30,20,1000000 );
+                               OSD_ALIGN_TOP|OSD_ALIGN_RIGHT,
+                               30 + p_vout->fmt_in.i_width
+                                  - p_vout->fmt_in.i_visible_width
+                                  - p_vout->fmt_in.i_x_offset,
+                               20 + p_vout->fmt_in.i_y_offset, 1000000 );
 
         vlc_object_release( p_vout );
         free( psz_string );