]> git.sesse.net Git - vlc/commitdiff
freetype: build fix
authorPierre Ynard <linkfanel@yahoo.fr>
Sat, 11 Jun 2011 07:06:18 +0000 (09:06 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Sat, 11 Jun 2011 07:06:18 +0000 (09:06 +0200)
modules/misc/text_renderer/freetype.c

index 378f71f80ede610fb853fb7dde1a495e717d60ac..5c068aa326bb39a663d6bbedd0455ce38a4d355f 100644 (file)
@@ -2235,8 +2235,8 @@ static int ProcessLines( filter_t *p_filter,
 #elif defined( WIN32 )
                 psz_fontfile = Win32_Select( p_filter,
                                             p_style->psz_fontname,
-                                            p_style->b_bold,
-                                            p_style->b_italic,
+                                            (p_style->i_style_flags & STYLE_BOLD) != 0,
+                                            (p_style->i_style_flags & STYLE_ITALIC) != 0,
                                             -1,
                                             &i_idx );
 #else