cleanup
This commit is contained in:
@@ -708,7 +708,7 @@ void Sprite::SetCustomImageRect( RectF rectImageCoords )
|
|||||||
// Convert to a rectangle in texture coordinate space.
|
// Convert to a rectangle in texture coordinate space.
|
||||||
rectImageCoords.left *= m_pTexture->GetImageWidth() / (float)m_pTexture->GetTextureWidth();
|
rectImageCoords.left *= m_pTexture->GetImageWidth() / (float)m_pTexture->GetTextureWidth();
|
||||||
rectImageCoords.right *= m_pTexture->GetImageWidth() / (float)m_pTexture->GetTextureWidth();
|
rectImageCoords.right *= m_pTexture->GetImageWidth() / (float)m_pTexture->GetTextureWidth();
|
||||||
rectImageCoords.top *= m_pTexture->GetImageHeight() / (float)m_pTexture->GetTextureHeight();
|
rectImageCoords.top *= m_pTexture->GetImageHeight() / (float)m_pTexture->GetTextureHeight();
|
||||||
rectImageCoords.bottom *= m_pTexture->GetImageHeight() / (float)m_pTexture->GetTextureHeight();
|
rectImageCoords.bottom *= m_pTexture->GetImageHeight() / (float)m_pTexture->GetTextureHeight();
|
||||||
|
|
||||||
SetCustomTextureRect( rectImageCoords );
|
SetCustomTextureRect( rectImageCoords );
|
||||||
|
|||||||
Reference in New Issue
Block a user