diff --git a/code/ryzom/client/src/interface_v3/group_in_scene.cpp b/code/ryzom/client/src/interface_v3/group_in_scene.cpp index fccf2e9e6..b547f7fb0 100644 --- a/code/ryzom/client/src/interface_v3/group_in_scene.cpp +++ b/code/ryzom/client/src/interface_v3/group_in_scene.cpp @@ -86,8 +86,10 @@ void CGroupInScene::computeWindowPos(sint32 &newX, sint32 &newY, CVector &newPro tmp = pVR.getFrustum().projectZ (tmp); // Get the width and height - tmp.x *= (float)CViewRenderer::getInstance()->getDriver()->getWindowWidth(); - tmp.y *= (float)CViewRenderer::getInstance()->getDriver()->getWindowHeight(); + uint32 width, height; + CViewRenderer::getInstance()->getScreenSize(width, height); + tmp.x *= width; + tmp.y *= height; // position without offset, in float newProjCenter.x= tmp.x; diff --git a/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp b/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp index e964911c3..eb935bc40 100644 --- a/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp +++ b/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp @@ -668,9 +668,8 @@ CGroupInSceneBubbleManager::CPopupContext *CGroupInSceneBubbleManager::buildCont if (target) { // Find a position - NL3D::UDriver *Driver = CViewRenderer::getInstance()->getDriver(); - const uint width = Driver->getWindowWidth(); - const uint height = Driver->getWindowHeight(); + uint32 width, height; + CViewRenderer::getInstance()->getScreenSize(width, height); h = (target->getXReal() < ((sint)width-target->getXReal()-target->getWReal()))?"l":"r"; v = (target->getYReal() < ((sint)height-target->getYReal()-target->getHReal()))?"b":"t"; target->setActive(true);