summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 00:53:22 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 00:53:22 +0000
commit812103cea68f1da2004dd518c5ad3b448a0e1729 (patch)
treeb4bc86a077385a219474bcb5bca727e0703ed52b /src/resources/image.cpp
parent3628aae5ef1be719603d4aa8e1b209cf5e04520c (diff)
downloadmana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.gz
mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.bz2
mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.xz
mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.zip
Simplified logging for the sake of simplicity.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index dc5df41c..da0be097 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -40,9 +40,7 @@ Image::~Image()
Image* Image::load(const std::string &filePath, int flags)
{
- std::stringstream msg;
- msg << "Image::load(" << filePath << ")";
- log(msg.str());
+ log("Image::load(%s)", filePath.c_str());
// Attempt to use SDL_Image to load the file.
SDL_Surface *tmpImage = IMG_Load(filePath.c_str());
@@ -59,8 +57,8 @@ 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 load failed : %s", IMG_GetError());
- //log("Error", "Image load failed : %s", filePath.c_str());
+ log("Error: Image load failed: %s", IMG_GetError());
+ //log("Error: Image load failed: %s", filePath.c_str());
return NULL;
}