diff options
author | Karl Steifvater <qarl@lindenlab.com> | 2008-12-16 17:46:34 +0000 |
---|---|---|
committer | Karl Steifvater <qarl@lindenlab.com> | 2008-12-16 17:46:34 +0000 |
commit | 995a5bc46a34b384b5c5af6d82f0f505139ddbbb (patch) | |
tree | da571c827ff3ac0e2fc3ff12692506324c595214 | |
parent | 1e4c7907b5f40f235fd04e94ee06d967017a249a (diff) |
fix for coordinates, convertCoords() only works when in fullscreen window.
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index edb339eab4..9656ab1f53 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -5371,12 +5371,8 @@ void LLPickInfo::updateXYCoords() LLPointer<LLViewerImage> imagep = gImageList.getImage(tep->getID()); if(mUVCoords.mV[VX] >= 0.f && mUVCoords.mV[VY] >= 0.f && imagep.notNull()) { - LLCoordGL coords; - - coords.mX = llround(mUVCoords.mV[VX] * (F32)imagep->getWidth()); - coords.mY = llround(mUVCoords.mV[VY] * (F32)imagep->getHeight()); - - gViewerWindow->getWindow()->convertCoords(coords, &mXYCoords); + mXYCoords.mX = llround(mUVCoords.mV[VX] * (F32)imagep->getWidth()); + mXYCoords.mY = llround((1.f - mUVCoords.mV[VY]) * (F32)imagep->getHeight()); } } } |