diff options
| author | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
| commit | 98875c5a636f50fe89b9394b8193e86094ae14e0 (patch) | |
| tree | 305f1a3c884763aff65f8bcd12ff9d2f648a04cd /src/client/image.c | |
| parent | 957f3411170ca1d5f30ee2e2c4e25393195cce75 (diff) | |
uses new macro DEBUG_MSG
Diffstat (limited to 'src/client/image.c')
| -rw-r--r-- | src/client/image.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/client/image.c b/src/client/image.c index 38296e7..e5b0c3e 100644 --- a/src/client/image.c +++ b/src/client/image.c @@ -25,9 +25,9 @@ bool_t isImageInicialized() void initImageData() { assert(isInterfaceInicialized() == TRUE); -#ifdef DEBUG - printf(_("Initializing image database\n")); -#endif + + DEBUG_MSG(_("Initializing image database\n")); + listStorage = newStorage(); isImageDataInit = TRUE; } @@ -187,9 +187,9 @@ image_t *addImageData(char *file, int alpha, char *name, char *group) new = newImage(surface); addItemToStorage(listStorage, group, name, new); -#ifdef DEBUG - printf(_("Loading image %s\n"), file); -#endif + + DEBUG_MSG(_("Loading image %s\n"), file); + return new; } @@ -295,9 +295,8 @@ void drawImage(image_t *image, int x,int y, int px, int py, int w, int h) */ void quitImageData() { -#ifdef DEBUG - printf(_("Quitting image database\n")); -#endif + DEBUG_MSG(_("Quitting image database\n")); + destroyStorage(listStorage, destroyImage); isImageDataInit = FALSE; } |