forked from mirror/openmw-tes3mp
Small cleanup
This commit is contained in:
parent
516f2765a1
commit
79b3f1e6a8
1 changed files with 3 additions and 2 deletions
|
@ -99,8 +99,9 @@ namespace osgMyGUI
|
|||
{
|
||||
MyGUI::IntSize globalViewSize = MyGUI::RenderManager::getInstance().getViewSize();
|
||||
MyGUI::IntSize viewSize = globalViewSize;
|
||||
viewSize.width /= getScaleFactor();
|
||||
viewSize.height /= getScaleFactor();
|
||||
float scale = getScaleFactor();
|
||||
viewSize.width /= scale;
|
||||
viewSize.height /= scale;
|
||||
|
||||
float hoffset = (globalViewSize.width - mViewSize.width*getScaleFactor())/2.f / static_cast<float>(globalViewSize.width);
|
||||
float voffset = (globalViewSize.height - mViewSize.height*getScaleFactor())/2.f / static_cast<float>(globalViewSize.height);
|
||||
|
|
Loading…
Reference in a new issue