From 87aa86e01687da4babd991e3f8c9418a7f9d5881 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 14 Jul 2016 20:20:55 +0300 Subject: [PATCH] Fixed: Mouse pointer location after exiting freelook --HG-- branch : experimental-ui-scaling --- code/ryzom/client/src/input.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ryzom/client/src/input.cpp b/code/ryzom/client/src/input.cpp index 403947538..f0a3133b9 100644 --- a/code/ryzom/client/src/input.cpp +++ b/code/ryzom/client/src/input.cpp @@ -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();