diff options
| author | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
|---|---|---|
| committer | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
| commit | 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch) | |
| tree | cfbded574ded7c3c666de6211877469ff6a95d75 /src/client/font.c | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/client/font.c')
| -rw-r--r-- | src/client/font.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |