fix for coordinates, convertCoords() only works when in fullscreen window.
parent
1e4c7907b5
commit
995a5bc46a
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue