From 5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 May 2014 17:01:38 +0300 Subject: Fix sign on some vars. --- src/graphicsmanager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/graphicsmanager.cpp') 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(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( + 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) -- cgit v1.2.3-70-g09d2