summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/font_load.c2
-rw-r--r--libvo/font_load.h4
-rw-r--r--libvo/font_load_ft.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c
index be445de86a..9f0204b5c7 100644
--- a/libvo/font_load.c
+++ b/libvo/font_load.c
@@ -49,7 +49,7 @@ err_out:
extern int sub_unicode;
-font_desc_t* read_font_desc(char* fname,float factor,int verbose){
+font_desc_t* read_font_desc(const char* fname,float factor,int verbose){
unsigned char sor[1024];
unsigned char sor2[1024];
font_desc_t *desc;
diff --git a/libvo/font_load.h b/libvo/font_load.h
index b125b9db7b..629dcd336c 100644
--- a/libvo/font_load.h
+++ b/libvo/font_load.h
@@ -80,7 +80,7 @@ extern int force_load_font;
int init_freetype(void);
int done_freetype(void);
-font_desc_t* read_font_desc_ft(char* fname,int movie_width, int movie_height);
+font_desc_t* read_font_desc_ft(const char* fname,int movie_width, int movie_height);
void free_font_desc(font_desc_t *desc);
void render_one_glyph(font_desc_t *desc, int c);
@@ -96,6 +96,6 @@ static int kerning(font_desc_t *desc, int prevc, int c) { return 0; }
#endif
raw_file* load_raw(char *name,int verbose);
-font_desc_t* read_font_desc(char* fname,float factor,int verbose);
+font_desc_t* read_font_desc(const char* fname,float factor,int verbose);
#endif /* ! __MPLAYER_FONT_LOAD_H */
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c
index c555b162c6..571919b473 100644
--- a/libvo/font_load_ft.c
+++ b/libvo/font_load_ft.c
@@ -905,7 +905,7 @@ void free_font_desc(font_desc_t *desc)
free(desc);
}
-static int load_sub_face(char *name, FT_Face *face)
+static int load_sub_face(const char *name, FT_Face *face)
{
int err = -1;
@@ -952,7 +952,7 @@ int kerning(font_desc_t *desc, int prevc, int c)
return f266ToInt(kern.x);
}
-font_desc_t* read_font_desc_ft(char *fname, int movie_width, int movie_height)
+font_desc_t* read_font_desc_ft(const char *fname, int movie_width, int movie_height)
{
font_desc_t *desc;