]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
to resolve the format string madness once and for all: write explicit casts for all...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2011 18:32:45 +0000 (18:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2011 18:32:45 +0000 (18:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11110 d7cf8633-e32d-0410-b094-e92efae38249

ft2.c

diff --git a/ft2.c b/ft2.c
index 859c92ba3507d9c3a08718b4d5aca1fe8683c060..51d892e68df36c3edb35306cde7520b98f5441c2 100644 (file)
--- a/ft2.c
+++ b/ft2.c
@@ -1211,16 +1211,16 @@ static qboolean Font_LoadMap(ft2_font_t *font, ft2_font_map_t *mapstart, Uchar _
 
        // create a totally unique name for this map, then we will use it to make a unique cachepic_t to avoid redundant textures
        dpsnprintf(map_identifier, sizeof(map_identifier),
-               "%s_cache_%g_%u_%g_%g_%g_%g_%g_%u",
+               "%s_cache_%g_%d_%g_%g_%g_%g_%g_%u",
                font->name,
-               mapstart->intSize,
-               load_flags,
-               font->settings->blur,
-               font->settings->outline,
-               font->settings->shadowx,
-               font->settings->shadowy,
-               font->settings->shadowz,
-               (unsigned)map->start/FONT_CHARS_PER_MAP);
+               (double) mapstart->intSize,
+               (int) load_flags,
+               (double) font->settings->blur,
+               (double) font->settings->outline,
+               (double) font->settings->shadowx,
+               (double) font->settings->shadowy,
+               (double) font->settings->shadowz,
+               (unsigned) map->start/FONT_CHARS_PER_MAP);
 
        // create a cachepic_t from the data now, or reuse an existing one
        map->pic = Draw_CachePic_Flags(map_identifier, CACHEPICFLAG_QUIET);