From 4c404e75a4e36d2d3151200e09990a9b6e82dacf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Oct 2013 13:24:32 +0300 Subject: fix compilation warnings. --- src/eventsmanager.cpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'src/eventsmanager.cpp') 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(touch.touchId), + static_cast(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(touch.touchId), + static_cast(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(touch.touchId), + static_cast(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(gesture.touchId), + gesture.dTheta, gesture.dDist, gesture.x * w, gesture.y * h, (int)gesture.numFingers, (int)gesture.padding); break; -- cgit v1.2.3-60-g2f50