summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-03-24 21:24:31 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-03-24 21:24:31 +0000
commitb5a9e699b9685e2a7d448171e282fd284754caf1 (patch)
tree4c8787fb30d28ec685bbcbb2ddca962b838a256d /src/resources/image.cpp
parentadf5fb5d45c11a0506d199d2cc672535c8418ce1 (diff)
downloadmana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.gz
mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.bz2
mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.xz
mana-b5a9e699b9685e2a7d448171e282fd284754caf1.zip
Logger Implemented. (3/3)
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp7
1 files changed, 4 insertions, 3 deletions
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;
}