|
|
@ -86,8 +86,10 @@ void CGroupInScene::computeWindowPos(sint32 &newX, sint32 &newY, CVector &newPro
|
|
|
|
tmp = pVR.getFrustum().projectZ (tmp);
|
|
|
|
tmp = pVR.getFrustum().projectZ (tmp);
|
|
|
|
|
|
|
|
|
|
|
|
// Get the width and height
|
|
|
|
// Get the width and height
|
|
|
|
tmp.x *= (float)CViewRenderer::getInstance()->getDriver()->getWindowWidth();
|
|
|
|
uint32 width, height;
|
|
|
|
tmp.y *= (float)CViewRenderer::getInstance()->getDriver()->getWindowHeight();
|
|
|
|
CViewRenderer::getInstance()->getScreenSize(width, height);
|
|
|
|
|
|
|
|
tmp.x *= width;
|
|
|
|
|
|
|
|
tmp.y *= height;
|
|
|
|
|
|
|
|
|
|
|
|
// position without offset, in float
|
|
|
|
// position without offset, in float
|
|
|
|
newProjCenter.x= tmp.x;
|
|
|
|
newProjCenter.x= tmp.x;
|
|
|
|