diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-12 12:34:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-13 01:02:41 +0300 |
commit | d3d31c610596e5bea55242fbdae42ab48b108cc8 (patch) | |
tree | 8d7887e5e88100d2485b0fb9866b498e36b46217 /src | |
parent | 14a9a1da30ca772efd42a9ce6662a11b102818bc (diff) | |
download | manaverse-d3d31c610596e5bea55242fbdae42ab48b108cc8.tar.gz manaverse-d3d31c610596e5bea55242fbdae42ab48b108cc8.tar.bz2 manaverse-d3d31c610596e5bea55242fbdae42ab48b108cc8.tar.xz manaverse-d3d31c610596e5bea55242fbdae42ab48b108cc8.zip |
Remove useless debug messages about skins.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/theme.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index e7d8f0393..41bf32ad5 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -392,10 +392,7 @@ Skin *Theme::readSkin(const std::string &filename) if (filename.empty()) return nullptr; -// std::string filename = filename0; -// ResourceManager *resman = ResourceManager::getInstance(); - logger->log("Loading skin '%s'.", filename.c_str()); -// filename = resman->mapPathToSkin(filename0); +// logger->log("Loading skin '%s'.", filename.c_str()); XML::Document doc(resolveThemePath(filename)); XmlNodePtr rootNode = doc.rootNode(); @@ -411,9 +408,6 @@ Skin *Theme::readSkin(const std::string &filename) return nullptr; } - logger->log("Theme::load(): <skinset> defines '%s' as a skin image.", - skinSetImage.c_str()); - Image *dBorders = Theme::getImageFromTheme(skinSetImage); ImageRect border; ImageRect images; @@ -480,23 +474,6 @@ Skin *Theme::readSkin(const std::string &filename) if (dBorders) dBorders->decRef(); - logger->log1("Finished loading skin."); - - // Hard-coded for now until we update the above code - // to look for window buttons -/* - Image *closeImage = Theme::getImageFromTheme("close_button.png"); - Image *sticky = Theme::getImageFromTheme("sticky_button.png"); - Image *stickyImageUp = nullptr; - Image *stickyImageDown = nullptr; - if (sticky) - { - stickyImageUp = sticky->getSubImage(0, 0, 15, 15); - stickyImageDown = sticky->getSubImage(15, 0, 15, 15); - sticky->decRef(); - } -*/ - Skin *skin = new Skin(border, images.grid[0], images.grid[1], images.grid[2], filename, "", padding, titlePadding); skin->updateAlpha(mMinimumOpacity); |