| 98 | } |
| 99 | |
| 100 | void CUICursor::SetUICursorPosition(const Fvector2& pos) |
| 101 | { |
| 102 | vPos = pos; |
| 103 | |
| 104 | const int x = iFloor(vPos.x / (UI_BASE_WIDTH / (float)Device.dwWidth)); |
| 105 | const int y = iFloor(vPos.y / (UI_BASE_HEIGHT / (float)Device.dwHeight)); |
| 106 | |
| 107 | SetCursorPos(x, y); |
| 108 | } |
no test coverage detected