diff options
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; } |