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/image.c | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/client/image.c')
| -rw-r--r-- | src/client/image.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/image.c b/src/client/image.c index 4fb033a..cdd7c9b 100644 --- a/src/client/image.c +++ b/src/client/image.c @@ -25,7 +25,7 @@ void image_init() { assert(interface_is_inicialized() == TRUE); - DEBUG_MSG(_("[Debug] Initializing image database\n")); + debug("Initializing image database"); listStorage = storage_new(); isImageDataInit = TRUE; @@ -47,12 +47,12 @@ static SDL_Surface *loadImage(const char *filename, int alpha) accessExistFile(str); if ((tmp = IMG_Load(str)) == NULL) { - fprintf(stderr, "%s\n", SDL_GetError()); + error("SDL: %s", SDL_GetError()); return NULL; } if ((ret = (alpha) ? SDL_DisplayFormatAlpha(tmp) : SDL_DisplayFormat(tmp)) == NULL) { - fprintf(stderr, "%s\n", SDL_GetError()); + error("SDL: %s", SDL_GetError()); SDL_FreeSurface(tmp); return NULL; } @@ -197,7 +197,7 @@ image_t *image_add(char *file, int alpha, char *name, char *group) storage_add(listStorage, group, name, new); - DEBUG_MSG(_("[Debug] Loading image [%s]\n"), file); + debug("Loading image [%s]", file); return new; } @@ -316,7 +316,7 @@ void image_draw(image_t *image, int x,int y, int px, int py, int w, int h) */ void image_quit() { - DEBUG_MSG(_("[Debug] Shutting down image database\n")); + debug("Shutting down image database"); storage_destroy(listStorage, image_destroy); isImageDataInit = FALSE; |