Optimization pass.
This commit is contained in:
@@ -149,13 +149,13 @@ void LLUIImage::draw3D(const LLVector3& origin_agent, const LLVector3& x_axis, c
|
||||
S32 LLUIImage::getWidth() const
|
||||
{
|
||||
// return clipped dimensions of actual image area
|
||||
return ll_round((F32)mImage->getWidth(0) * mClipRegion.getWidth());
|
||||
return ll_pos_round((F32)mImage->getWidth(0) * mClipRegion.getWidth());
|
||||
}
|
||||
|
||||
S32 LLUIImage::getHeight() const
|
||||
{
|
||||
// return clipped dimensions of actual image area
|
||||
return ll_round((F32)mImage->getHeight(0) * mClipRegion.getHeight());
|
||||
return ll_pos_round((F32)mImage->getHeight(0) * mClipRegion.getHeight());
|
||||
}
|
||||
|
||||
S32 LLUIImage::getTextureWidth() const
|
||||
|
||||
Reference in New Issue
Block a user