Gems/LyShine

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-20 17:59:06 -07:00
parent 794d656c66
commit 3c56faceb4
20 changed files with 14 additions and 47 deletions
@@ -227,7 +227,6 @@ void SpriteBorderEditor::DisplaySelectedCell(AZ::u32 cellIndex)
// Determine how much we need to scale the view to fit the cell
// contents to the displayed properties image.
const AZ::Vector2 cellSize = m_sprite->GetCellSize(cellIndex);
const AZ::Vector2 cellScale = AZ::Vector2(m_unscaledSpriteSheet.size().width() / cellSize.GetX(), m_unscaledSpriteSheet.size().height() / cellSize.GetY());
// Scale-to-fit, while preserving aspect ratio.
QRect croppedRect = m_unscaledSpriteSheet.rect();