diff options
author | Karl Steifvater <qarl@lindenlab.com> | 2008-12-16 17:48:38 +0000 |
---|---|---|
committer | Karl Steifvater <qarl@lindenlab.com> | 2008-12-16 17:48:38 +0000 |
commit | d2a2b7fd552135b66aa7753eba4833b1197557b5 (patch) | |
tree | 82ff548b9f10e9d80bdf3496e49285eb5955d04b /indra/newview/llviewerwindow.cpp | |
parent | 995a5bc46a34b384b5c5af6d82f0f505139ddbbb (diff) |
EGADS - last checkin to wrong branch. undone.
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 9656ab1f53..edb339eab4 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -5371,8 +5371,12 @@ void LLPickInfo::updateXYCoords() LLPointer<LLViewerImage> imagep = gImageList.getImage(tep->getID()); if(mUVCoords.mV[VX] >= 0.f && mUVCoords.mV[VY] >= 0.f && imagep.notNull()) { - mXYCoords.mX = llround(mUVCoords.mV[VX] * (F32)imagep->getWidth()); - mXYCoords.mY = llround((1.f - mUVCoords.mV[VY]) * (F32)imagep->getHeight()); + 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); } } } |