summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-01 16:38:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-01 17:27:14 +0300
commit40efe9ac2ad7b080f3b817b7fc909fcc2b333093 (patch)
treec44f00520ec27561517bd7259c3c6d04ed4945ef
parent9ed4da85e64cb78b4eb55f12cac11e2dca9610a7 (diff)
downloadmanaverse-40efe9ac2ad7b080f3b817b7fc909fcc2b333093.tar.gz
manaverse-40efe9ac2ad7b080f3b817b7fc909fcc2b333093.tar.bz2
manaverse-40efe9ac2ad7b080f3b817b7fc909fcc2b333093.tar.xz
manaverse-40efe9ac2ad7b080f3b817b7fc909fcc2b333093.zip
improve screen density logging.
-rw-r--r--src/graphicsmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 52006ad6c..8c2c9f9b2 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -1030,7 +1030,8 @@ void GraphicsManager::detectPixelSize()
#endif
logger->log("screen size in pixels: %dx%d", mMaxWidth, mMaxHeight);
logger->log("screen size in millimeters: %dx%d", mWidthMM, mHeightMM);
- logger->log("screen density: %d", mDensity);
+ logger->log("screen density: \"%s\" = %d",
+ getDensityString().c_str(), mDensity);
}
std::string GraphicsManager::getDensityString() const