[vlc-devel] commit: Set minimum scale in spu core for text renderer. (Laurent Aimar )
git version control
git at videolan.org
Wed Sep 17 20:41:45 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Sep 17 20:28:18 2008 +0200| [3adaa31d406f5d9d72cd2d75f8124e41521f1e3c] | committer: Laurent Aimar
Set minimum scale in spu core for text renderer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3adaa31d406f5d9d72cd2d75f8124e41521f1e3c
---
src/video_output/vout_subpictures.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 96fb79b..99b1605 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -777,7 +777,8 @@ static void SpuRenderRegion( spu_t *p_spu,
b_rerender_text = false;
if( p_region->fmt.i_chroma == VLC_FOURCC('T','E','X','T') )
{
- SpuRenderText( p_spu, &b_rerender_text, p_subpic, p_region, SCALE_UNIT );
+ const int i_min_scale_ratio = __MIN( scale_size.w, scale_size.h );
+ SpuRenderText( p_spu, &b_rerender_text, p_subpic, p_region, i_min_scale_ratio );
b_restore_format = b_rerender_text;
/* Check if the rendering has failed ... */
More information about the vlc-devel
mailing list