diff options
author | Ramzi Linden <ramzi@lindenlab.com> | 2009-11-18 03:15:30 +0800 |
---|---|---|
committer | Ramzi Linden <ramzi@lindenlab.com> | 2009-11-18 03:15:30 +0800 |
commit | 2365dbcd459b37942ddacbcb7010232113a126c1 (patch) | |
tree | a1d02f23ce30af86f5c202aa440b1d5a15fdfedc /indra/newview/llmanip.cpp | |
parent | d6bbc652def68b5b8b67ef4049a1250aefdde7cb (diff) | |
parent | 6253e2611d3ecf4ff5c778d0e53f34aed06f35da (diff) |
merge
Diffstat (limited to 'indra/newview/llmanip.cpp')
-rw-r--r-- | indra/newview/llmanip.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llmanip.cpp b/indra/newview/llmanip.cpp index fa1dbe0603..9ca207a579 100644 --- a/indra/newview/llmanip.cpp +++ b/indra/newview/llmanip.cpp @@ -429,9 +429,10 @@ void LLManip::renderXYZ(const LLVector3 &vec) const S32 PAD = 10; std::string feedback_string; LLVector3 camera_pos = LLViewerCamera::getInstance()->getOrigin() + LLViewerCamera::getInstance()->getAtAxis(); - S32 vertical_offset = gViewerWindow->getWindowHeightScaled() / 2 - VERTICAL_OFFSET; - S32 window_center_x = gViewerWindow->getWindowWidthScaled() / 2; - S32 window_center_y = gViewerWindow->getWindowHeightScaled() / 2; + S32 window_center_x = gViewerWindow->getWorldViewRectScaled().getWidth() / 2; + S32 window_center_y = gViewerWindow->getWorldViewRectScaled().getHeight() / 2; + S32 vertical_offset = window_center_y - VERTICAL_OFFSET; + glPushMatrix(); { |