From 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Sun, 6 Dec 2009 22:58:26 +0100 Subject: Revised methods how are translated strings handled Few comments were made available to Doxygen --- src/client/font.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/font.c') diff --git a/src/client/font.c b/src/client/font.c index a880dab..d052cbb 100644 --- a/src/client/font.c +++ b/src/client/font.c @@ -38,7 +38,7 @@ void font_init() } */ if (font_list == NULL) { - fprintf(stderr, _("[Error] Unable to locate a font\n")); + error("Unable to locate a font"); return; } @@ -50,7 +50,7 @@ void font_init() if (TTF_Init() == -1) { free(font_file); - fprintf(stderr, "%s\n", SDL_GetError()); + error("SDL: %s", SDL_GetError()); return; } @@ -59,7 +59,7 @@ void font_init() g_font = TTF_OpenFont(font_file, fontSize); TTF_SetFontStyle(g_font, TTF_STYLE_NORMAL); - DEBUG_MSG(_("[Debug] Loading font [%s]\n"), font_file); + debug("Loading font [%s]", font_file); free(font_file); isFontInit = TRUE; @@ -150,7 +150,7 @@ void font_quit() TTF_CloseFont(g_font); TTF_Quit(); - DEBUG_MSG(_("[Debug] Unloading font\n")); + debug("Unloading font"); isFontInit = FALSE; } -- cgit v1.2.3