EGADS - last checkin to wrong branch. undone.

meow-7.2.2
Karl Steifvater 2008-12-16 17:48:38 +00:00
parent 995a5bc46a
commit d2a2b7fd55
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}
}
}