Browse Source

* Fix compilation on lesser tools

undefined
Jean-Yves Lamoureux Sam Hocevar <sam@hocevar.net> 11 years ago
parent
commit
b59fdb8baa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/platform/sdl/sdlinput.cpp

+ 1
- 1
src/platform/sdl/sdlinput.cpp View File

@@ -222,7 +222,7 @@ void SdlInputData::Tick(float seconds)
{ {
m_mousecapture = InputDeviceInternal::GetMouseCapture(); m_mousecapture = InputDeviceInternal::GetMouseCapture();
SDL_WM_GrabInput(m_mousecapture ? SDL_GRAB_ON : SDL_GRAB_OFF); SDL_WM_GrabInput(m_mousecapture ? SDL_GRAB_ON : SDL_GRAB_OFF);
mouse = m_app/2.0f;
mouse = (ivec2)m_app / 2;
SdlInputData::SetMousePos(mouse); SdlInputData::SetMousePos(mouse);
//SDL_ShowCursor(m_mousecapture ? SDL_DISABLE : SDL_ENABLE); //SDL_ShowCursor(m_mousecapture ? SDL_DISABLE : SDL_ENABLE);
} }


Loading…
Cancel
Save