[vlc-commits] Freetype: harmonize between platforms

Jean-Baptiste Kempf git at videolan.org
Wed Aug 28 18:16:54 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 28 17:53:50 2013 +0200| [6d151864757ec65168c2ea4ba9fe4a320683de8d] | committer: Jean-Baptiste Kempf

Freetype: harmonize between platforms

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

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

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 92de709..f4d02aa 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2406,11 +2406,10 @@ static int Create( vlc_object_t *p_this )
                                           &monofontindex );
 #elif defined(__APPLE__)
 #if !TARGET_OS_IPHONE
-    psz_fontfile = MacLegacy_Select( p_filter, psz_fontname, false, false, 0, &fontindex );
+    psz_fontfile = MacLegacy_Select( p_filter, psz_fontname, false, false, -1, &fontindex );
 #endif
 #elif defined(_WIN32)
-    psz_fontfile = Win32_Select( p_filter, psz_fontname, false, false,
-                                 p_sys->i_default_font_size, &fontindex );
+    psz_fontfile = Win32_Select( p_filter, psz_fontname, false, false, -1, &fontindex );
 
 #endif
     msg_Dbg( p_filter, "Using %s as font from file %s", psz_fontname, psz_fontfile );



More information about the vlc-commits mailing list