From 9f7c7160fab42cd9235ec993f6ec05899119a3c4 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Sat, 22 Oct 2005 07:30:08 +0000 Subject: [PATCH] Got rid of unused variable (make compiler happy). Reinstated some italics-related stuff. (Last SDL_ttf updated had to do with corrupt memory when blitting italic; thought that could've caused probs.) --- src/tuxpaint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 89272a521..6e1ce08d5 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -1709,7 +1709,6 @@ static void parse_font_style(style_info *si) sp += strlen("Regular"); continue; } -#if 0 if(!strncasecmp(sp,"Italic",strlen("Italic"))) { sp += strlen("Italic"); @@ -1722,7 +1721,6 @@ static void parse_font_style(style_info *si) si->italic = 1; continue; } -#endif // move " Condensed" from style to family if(!strncasecmp(sp,"Condensed",strlen("Condensed"))) { @@ -6719,8 +6717,10 @@ static void loadfont_callback(const char *restrict const dir, unsigned dirlen, t { const char *restrict const family = TTF_FontFaceFamilyName(font); const char *restrict const style = TTF_FontFaceStyleName(font); - int numfaces = TTF_FontFaces(font); + + #ifdef DEBUG + int numfaces = TTF_FontFaces(font); if (numfaces != 1) printf("Found %d faces in %s, %s, %s\n", numfaces, files[i].str, family, style); #endif