summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-14 17:56:35 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-14 17:56:35 +0000
commitb987127e0e7eb90d8a0a618035a377e92f098447 (patch)
tree93886db1483e2ad6c3901f6646638e6da6079afa /TOOLS
parentbbeb54d80aa6d1d6945ce3b6461b7d24c57841e9 (diff)
downloadmpv-b987127e0e7eb90d8a0a618035a377e92f098447.tar.bz2
mpv-b987127e0e7eb90d8a0a618035a377e92f098447.tar.xz
compiler warning fixes
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8452 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/subfont-c/subfont.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/TOOLS/subfont-c/subfont.c b/TOOLS/subfont-c/subfont.c
index 584fe7d7db..c49bbc8d2a 100644
--- a/TOOLS/subfont-c/subfont.c
+++ b/TOOLS/subfont-c/subfont.c
@@ -274,7 +274,7 @@ void render() {
#ifndef NEW_DESC
fprintf(f, "charspace %i\n", -2*padding);
#endif
- fprintf(f, "height %i\n", f266ToInt(face->size->metrics.height));
+ fprintf(f, "height %li\n", f266ToInt(face->size->metrics.height));
#ifdef NEW_DESC
fprintf(f, "ascender %i\n", f266CeilToInt(face->size->metrics.ascender));
fprintf(f, "descender %i\n", f266FloorToInt(face->size->metrics.descender));
@@ -303,7 +303,7 @@ void render() {
else {
glyph_index = FT_Get_Char_Index(face, uni_charmap ? character:code);
if (glyph_index==0) {
- WARNING("Glyph for char 0x%02x|U+%04X|%c not found.", code, character,
+ WARNING("Glyph for char 0x%02lx|U+%04lX|%c not found.", code, character,
code<' '||code>255 ? '.':code);
continue;
}
@@ -312,7 +312,7 @@ void render() {
// load glyph
error = FT_Load_Glyph(face, glyph_index, load_flags);
if (error) {
- WARNING("FT_Load_Glyph 0x%02x (char 0x%02x|U+%04X) failed.", glyph_index, code, character);
+ WARNING("FT_Load_Glyph 0x%02x (char 0x%02lx|U+%04lX) failed.", glyph_index, code, character);
continue;
}
slot = face->glyph;
@@ -321,7 +321,7 @@ void render() {
if (slot->format != ft_glyph_format_bitmap) {
error = FT_Render_Glyph(slot, ft_render_mode_normal);
if (error) {
- WARNING("FT_Render_Glyph 0x%04x (char 0x%02x|U+%04X) failed.", glyph_index, code, character);
+ WARNING("FT_Render_Glyph 0x%04x (char 0x%02lx|U+%04lX) failed.", glyph_index, code, character);
continue;
}
}
@@ -329,7 +329,7 @@ void render() {
// extract glyph image
error = FT_Get_Glyph(slot, (FT_Glyph*)&glyph);
if (error) {
- WARNING("FT_Get_Glyph 0x%04x (char 0x%02x|U+%04X) failed.", glyph_index, code, character);
+ WARNING("FT_Get_Glyph 0x%04x (char 0x%02lx|U+%04lX) failed.", glyph_index, code, character);
continue;
}
glyphs[glyphs_count++] = (FT_Glyph)glyph;
@@ -365,7 +365,7 @@ void render() {
pen_xa = pen_x + f266ToInt(slot->advance.x) + 2*padding;
/* font.desc */
- fprintf(f, "0x%04x %i %i;\tU+%04X|%c\n", unicode_desc ? character:code,
+ fprintf(f, "0x%04lx %i %i;\tU+%04lX|%c\n", unicode_desc ? character:code,
pen_x, // bitmap start
pen_xa-1, // bitmap end
character, code<' '||code>255 ? '.':code);