summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-08 13:24:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-08 13:24:32 +0300
commit4c404e75a4e36d2d3151200e09990a9b6e82dacf (patch)
treef09098372090d6c788b5f3493848f881a111b366 /src
parentb13beb3c1d965dd1a2a8dd3bdbea3d66242c3298 (diff)
downloadmanaverse-4c404e75a4e36d2d3151200e09990a9b6e82dacf.tar.gz
manaverse-4c404e75a4e36d2d3151200e09990a9b6e82dacf.tar.bz2
manaverse-4c404e75a4e36d2d3151200e09990a9b6e82dacf.tar.xz
manaverse-4c404e75a4e36d2d3151200e09990a9b6e82dacf.zip
fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/eventsmanager.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 0a626e5e5..1cc73178b 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -194,8 +194,10 @@ void EventsManager::logEvent(const SDL_Event &event)
const SDL_TouchFingerEvent &touch = event.tfinger;
const int w = mainGraphics->mWidth;
const int h = mainGraphics->mHeight;
- logger->log("event: SDL_FINGERDOWN: %lld,%lld (%f,%f) (%f,%f)",
- touch.touchId, touch.fingerId, touch.x * w, touch.y * w,
+ logger->log("event: SDL_FINGERDOWN: %u,%u (%f,%f) (%f,%f)",
+ static_cast<unsigned int>(touch.touchId),
+ static_cast<unsigned int>(touch.fingerId),
+ touch.x * w, touch.y * w,
touch.dx * w, touch.dy * h);
break;
}
@@ -204,8 +206,10 @@ void EventsManager::logEvent(const SDL_Event &event)
const SDL_TouchFingerEvent &touch = event.tfinger;
const int w = mainGraphics->mWidth;
const int h = mainGraphics->mHeight;
- logger->log("event: SDL_FINGERUP: %lld,%lld (%f,%f) (%f,%f)",
- touch.touchId, touch.fingerId, touch.x * w, touch.y * h,
+ logger->log("event: SDL_FINGERUP: %u,%u (%f,%f) (%f,%f)",
+ static_cast<unsigned int>(touch.touchId),
+ static_cast<unsigned int>(touch.fingerId),
+ touch.x * w, touch.y * w,
touch.dx * w, touch.dy * h);
break;
}
@@ -214,8 +218,9 @@ void EventsManager::logEvent(const SDL_Event &event)
const SDL_TouchFingerEvent &touch = event.tfinger;
const int w = mainGraphics->mWidth;
const int h = mainGraphics->mHeight;
- logger->log("event: SDL_FINGERMOTION: %lld,%lld (%f,%f) (%f,%f)",
- touch.touchId, touch.fingerId,
+ logger->log("event: SDL_FINGERMOTION: %u,%u (%f,%f) (%f,%f)",
+ static_cast<unsigned int>(touch.touchId),
+ static_cast<unsigned int>(touch.fingerId),
touch.x * w, touch.y * h,
touch.dx * w, touch.dy * h);
break;
@@ -225,8 +230,9 @@ void EventsManager::logEvent(const SDL_Event &event)
const SDL_MultiGestureEvent &gesture = event.mgesture;
const int w = mainGraphics->mWidth;
const int h = mainGraphics->mHeight;
- logger->log("event: SDL_MULTIGESTURE: %lld %f,%f (%f,%f) %d,%d",
- gesture.touchId, gesture.dTheta, gesture.dDist,
+ logger->log("event: SDL_MULTIGESTURE: %u %f,%f (%f,%f) %d,%d",
+ static_cast<unsigned int>(gesture.touchId),
+ gesture.dTheta, gesture.dDist,
gesture.x * w, gesture.y * h, (int)gesture.numFingers,
(int)gesture.padding);
break;