Fixed: Mouse pointer location after exiting freelook
--HG-- branch : experimental-ui-scaling
This commit is contained in:
parent
6bfc777496
commit
87aa86e016
1 changed files with 3 additions and 3 deletions
|
@ -179,9 +179,9 @@ void SetMouseCursor (bool updatePos)
|
|||
// Get the last cursor
|
||||
float x = 0.5f, y = 0.5f;
|
||||
|
||||
// Window size
|
||||
uint width = Driver->getWindowWidth();
|
||||
uint height = Driver->getWindowHeight();
|
||||
// Screen size
|
||||
uint width, height;
|
||||
CViewRenderer::getInstance()->getScreenSize(width, height);
|
||||
|
||||
// Update the interface pointer
|
||||
CInterfaceManager *instance = CInterfaceManager::getInstance();
|
||||
|
|
Loading…
Reference in a new issue