From b59fdb8baa93acbd38dc83cc70c86481e5ef30fa Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Sun, 5 Jan 2014 15:04:13 +0000 Subject: [PATCH] * Fix compilation on lesser tools --- src/platform/sdl/sdlinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/sdl/sdlinput.cpp b/src/platform/sdl/sdlinput.cpp index 0440b2f5..2f7bdac1 100644 --- a/src/platform/sdl/sdlinput.cpp +++ b/src/platform/sdl/sdlinput.cpp @@ -222,7 +222,7 @@ void SdlInputData::Tick(float seconds) { m_mousecapture = InputDeviceInternal::GetMouseCapture(); SDL_WM_GrabInput(m_mousecapture ? SDL_GRAB_ON : SDL_GRAB_OFF); - mouse = m_app/2.0f; + mouse = (ivec2)m_app / 2; SdlInputData::SetMousePos(mouse); //SDL_ShowCursor(m_mousecapture ? SDL_DISABLE : SDL_ENABLE); }