summaryrefslogtreecommitdiff
path: root/imagemagickwrapper.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-03 14:40:07 +0100
committerlouis <louis.braun@gmx.de>2013-11-03 14:40:07 +0100
commit48315143f433b08b9f9cf56947b84a3293031b68 (patch)
tree5a04dcd2bd3ece22e13a8e57e8fead6401db3361 /imagemagickwrapper.c
parentc057102d9d7ac37ab6b83b3c811827eca3f0307b (diff)
downloadskin-nopacity-48315143f433b08b9f9cf56947b84a3293031b68.tar.gz
skin-nopacity-48315143f433b08b9f9cf56947b84a3293031b68.tar.bz2
Added Setup Option to generate log messages when trying to load pictures
Diffstat (limited to 'imagemagickwrapper.c')
-rw-r--r--imagemagickwrapper.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c
index aa1c147..e06e9f6 100644
--- a/imagemagickwrapper.c
+++ b/imagemagickwrapper.c
@@ -52,9 +52,11 @@ bool cImageMagickWrapper::LoadImage(std::string FileName, std::string Path, std:
std::stringstream sstrImgFile;
sstrImgFile << Path << FileName << "." << Extension;
std::string imgFile = sstrImgFile.str();
- //dsyslog("nopacity: trying to load: %s", imgFile.c_str());
+ if (config.GetValue("debugImageLoading"))
+ dsyslog("nopacity: trying to load: %s", imgFile.c_str());
buffer.read(imgFile.c_str());
- //dsyslog("nopacity: %s sucessfully loaded", imgFile.c_str());
+ if (config.GetValue("debugImageLoading"))
+ dsyslog("nopacity: %s sucessfully loaded", imgFile.c_str());
} catch (...) {
return false;
}
@@ -65,9 +67,11 @@ bool cImageMagickWrapper::LoadImage(const char *fullpath) {
if ((fullpath == NULL) || (strlen(fullpath) < 5))
return false;
try {
- //dsyslog("nopacity: trying to load: %s", fullpath);
+ if (config.GetValue("debugImageLoading"))
+ dsyslog("nopacity: trying to load: %s", fullpath);
buffer.read(fullpath);
- //dsyslog("nopacity: %s sucessfully loaded", fullpath);
+ if (config.GetValue("debugImageLoading"))
+ dsyslog("nopacity: %s sucessfully loaded", fullpath);
} catch (...) {
return false;
}