diff options
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 7 |
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, |