From 171433e9de6c48b019e7df4e7ae76d5bb6dfee9a Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Sun, 5 Jan 2014 15:04:11 +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 447c6981..0440b2f5 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; + mouse = m_app/2.0f; SdlInputData::SetMousePos(mouse); //SDL_ShowCursor(m_mousecapture ? SDL_DISABLE : SDL_ENABLE); }