From b5a9e699b9685e2a7d448171e282fd284754caf1 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 24 Mar 2005 21:24:31 +0000 Subject: Logger Implemented. (3/3) --- src/resources/image.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/image.cpp') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index f976466e..54e0c8b9 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -21,6 +21,7 @@ * $Id$ */ +#include "../main.h" #include "../graphics.h" #include "image.h" #include "../log.h" @@ -51,14 +52,14 @@ Image::~Image() Image* Image::load(const std::string &filePath, int flags) { - log("Image::load(%s)", filePath.c_str()); + logger.log("Image::load(%s)", filePath.c_str()); // Attempt to use SDL_Image to load the file. SDL_Surface *tmpImage = IMG_Load(filePath.c_str()); // Check if the file was opened and return the appropriate value. if (!tmpImage) { - log("Error: Image load failed."); + logger.log("Error: Image load failed."); return NULL; } @@ -77,7 +78,7 @@ Image* Image::load(const std::string &filePath, int flags) // Check if the file was opened and return the appropriate value. if (!image) { - log("Error: Image convert failed."); + logger.log("Error: Image convert failed."); return NULL; } -- cgit v1.2.3-60-g2f50