[vlc-commits] Freetype: fix a few warnings
Jean-Baptiste Kempf
git at videolan.org
Wed Feb 23 23:44:57 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Feb 23 23:44:43 2011 +0100| [4babf6e2c828a971b37616d8b3b11c87611d917b] | committer: Jean-Baptiste Kempf
Freetype: fix a few warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4babf6e2c828a971b37616d8b3b11c87611d917b
---
modules/misc/freetype.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index b40bb05..1fa1b2b 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -389,8 +389,8 @@ static int Create( vlc_object_t *p_this )
goto error;
}
- FcPatternAddString( fontpattern, FC_FAMILY, psz_fontfamily);
- FcPatternAddString( fontpattern, FC_SIZE, psz_fontsize );
+ FcPatternAddString( fontpattern, FC_FAMILY, (const FcChar8 *)psz_fontfamily );
+ FcPatternAddString( fontpattern, FC_SIZE, (const FcChar8 *)psz_fontsize );
free( psz_fontsize );
if( FcConfigSubstitute( NULL, fontpattern, FcMatchPattern ) == FcFalse )
@@ -1123,7 +1123,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
}
if (pos > start_pos)
{
- FriBidiCharType base_dir = FRIBIDI_TYPE_LTR;
+ FriBidiParType base_dir = FRIBIDI_PAR_LTR;
fribidi_log2vis((FriBidiChar*)psz_unicode + start_pos,
pos - start_pos,
&base_dir,
@@ -1809,7 +1809,7 @@ static int ProcessLines( filter_t *p_filter,
}
if (pos > start_pos)
{
- FriBidiCharType base_dir = FRIBIDI_TYPE_LTR;
+ FriBidiParType base_dir = FRIBIDI_PAR_LTR;
fribidi_log2vis((FriBidiChar*)psz_text + start_pos,
pos - start_pos, &base_dir,
(FriBidiChar*)p_fribidi_string + start_pos,
More information about the vlc-commits
mailing list