summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
commit5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 (patch)
treeaeafccf4632262393b23e52afc9facc5ec9f1b3f /src/graphicsmanager.cpp
parent84f2cad3897d0dacb60cfef4e1860ffb8ec268e1 (diff)
downloadmanaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.gz
manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.bz2
manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.xz
manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.zip
Fix sign on some vars.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index cb546e752..e31ec36ea 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -593,7 +593,10 @@ void GraphicsManager::updateTextureFormat() const
? static_cast<size_t>(num) : 10];
glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats);
for (int f = 0; f < num; f ++)
- logger->log(" 0x%x", formats[f]);
+ {
+ logger->log(" 0x%x", static_cast<unsigned int>(
+ formats[f]));
+ }
for (int f = 0; f < num; f ++)
{
@@ -1171,8 +1174,8 @@ void GraphicsManager::detectPixelSize()
&mWidthMM, &mHeightMM, &mDensity);
#endif
#endif
- logger->log("screen size in pixels: %dx%d", mMaxWidth, mMaxHeight);
- logger->log("screen size in millimeters: %dx%d", mWidthMM, mHeightMM);
+ logger->log("screen size in pixels: %ux%u", mMaxWidth, mMaxHeight);
+ logger->log("screen size in millimeters: %ux%u", mWidthMM, mHeightMM);
logger->log("actual screen density: " + getDensityString());
const int density = config.getIntValue("screenDensity");
if (density > 0 && density <= densitySize)