瀏覽代碼

* Fix compilation on lesser tools

undefined
Jean-Yves Lamoureux Sam Hocevar <sam@hocevar.net> 11 年之前
父節點
當前提交
171433e9de
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/platform/sdl/sdlinput.cpp

+ 1
- 1
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);
}


Loading…
取消
儲存