summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-13 23:22:52 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-13 23:22:52 +0000
commit25b87e0d02f285fa8bacc4369f1d9251cf815a40 (patch)
tree7b28f4bf60ac11b1ec77edff528eea8741898f29 /src/resources/image.cpp
parent00d7a2cee3904a5ef11b884d68b111ce2d7fd8a9 (diff)
downloadmana-client-25b87e0d02f285fa8bacc4369f1d9251cf815a40.tar.gz
mana-client-25b87e0d02f285fa8bacc4369f1d9251cf815a40.tar.bz2
mana-client-25b87e0d02f285fa8bacc4369f1d9251cf815a40.tar.xz
mana-client-25b87e0d02f285fa8bacc4369f1d9251cf815a40.zip
Now the resource manager will log a bit about images and cleanup.
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 f84826bb..dc5df41c 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -40,9 +40,10 @@ Image::~Image()
Image* Image::load(const std::string &filePath, int flags)
{
-#ifdef __DEBUG
- std::cout << "Image::load(" << filePath << ")\n";
-#endif
+ std::stringstream msg;
+ msg << "Image::load(" << filePath << ")";
+ log(msg.str());
+
// Attempt to use SDL_Image to load the file.
SDL_Surface *tmpImage = IMG_Load(filePath.c_str());
SDL_SetColorKey(tmpImage, SDL_SRCCOLORKEY | SDL_RLEACCEL,