Fixed: Mouse pointer location after exiting freelook

--HG--
branch : experimental-ui-scaling
This commit is contained in:
Nimetu 2016-07-14 20:20:55 +03:00
parent 6bfc777496
commit 87aa86e016

View file

@ -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();