From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/eventsmanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/eventsmanager.cpp') diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp index 8f3e7bdd4..a8d3ea582 100644 --- a/src/eventsmanager.cpp +++ b/src/eventsmanager.cpp @@ -220,8 +220,8 @@ void EventsManager::logEvent(const SDL_Event &event) case SDL_MOUSEMOTION: logger->log("event: SDL_MOUSEMOTION: %u,%d,%d", event.motion.state, - static_cast(event.motion.x), - static_cast(event.motion.y)); + CAST_S32(event.motion.x), + CAST_S32(event.motion.y)); break; case SDL_FINGERDOWN: { @@ -229,8 +229,8 @@ void EventsManager::logEvent(const SDL_Event &event) const int w = mainGraphics->mWidth; const int h = mainGraphics->mHeight; logger->log("event: SDL_FINGERDOWN: %u,%u (%f,%f) (%f,%f)", - static_cast(touch.touchId), - static_cast(touch.fingerId), + CAST_U32(touch.touchId), + CAST_U32(touch.fingerId), touch.x * w, touch.y * w, touch.dx * w, touch.dy * h); break; @@ -241,8 +241,8 @@ void EventsManager::logEvent(const SDL_Event &event) const int w = mainGraphics->mWidth; const int h = mainGraphics->mHeight; logger->log("event: SDL_FINGERUP: %u,%u (%f,%f) (%f,%f)", - static_cast(touch.touchId), - static_cast(touch.fingerId), + CAST_U32(touch.touchId), + CAST_U32(touch.fingerId), touch.x * w, touch.y * w, touch.dx * w, touch.dy * h); break; @@ -253,8 +253,8 @@ void EventsManager::logEvent(const SDL_Event &event) const int w = mainGraphics->mWidth; const int h = mainGraphics->mHeight; logger->log("event: SDL_FINGERMOTION: %u,%u (%f,%f) (%f,%f)", - static_cast(touch.touchId), - static_cast(touch.fingerId), + CAST_U32(touch.touchId), + CAST_U32(touch.fingerId), touch.x * w, touch.y * h, touch.dx * w, touch.dy * h); break; @@ -265,11 +265,11 @@ void EventsManager::logEvent(const SDL_Event &event) const int w = mainGraphics->mWidth; const int h = mainGraphics->mHeight; logger->log("event: SDL_MULTIGESTURE: %u %f,%f (%f,%f) %d,%d", - static_cast(gesture.touchId), + CAST_U32(gesture.touchId), gesture.dTheta, gesture.dDist, gesture.x * w, gesture.y * h, - static_cast(gesture.numFingers), - static_cast(gesture.padding)); + CAST_S32(gesture.numFingers), + CAST_S32(gesture.padding)); break; } case SDL_KEYDOWN: -- cgit v1.2.3-70-g09d2