[vlc-commits] Fixed text rendering with empty line in freetype.

Laurent Aimar git at videolan.org
Mon Sep 12 21:48:01 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Sep  6 21:58:00 2011 +0200| [d43dfe579d33c51b401f400b2c7af764380a78cf] | committer: Laurent Aimar

Fixed text rendering with empty line in freetype.

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

 modules/text_renderer/freetype.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 10c8150..bf32c82 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2180,7 +2180,8 @@ static int ProcessLines( filter_t *p_filter,
         /* Update our baseline */
         if( i_face_height_previous > 0 )
             i_base_line += __MAX(i_face_height, i_face_height_previous);
-        i_face_height_previous = i_face_height;
+        if( i_face_height > 0 )
+            i_face_height_previous = i_face_height;
 
         /* Update the line bbox with the actual base line */
         if (line_bbox.yMax > line_bbox.yMin) {



More information about the vlc-commits mailing list