From 39b8f02f161c0b438abb315b10461656aef514f8 Mon Sep 17 00:00:00 2001 From: GMatrixGames Date: Mon, 24 May 2021 12:46:09 -0400 Subject: [PATCH] Revert preview drawing --- FModel/Creator/Bases/UCreator.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/FModel/Creator/Bases/UCreator.cs b/FModel/Creator/Bases/UCreator.cs index 3c288df6..fb4e56ef 100644 --- a/FModel/Creator/Bases/UCreator.cs +++ b/FModel/Creator/Bases/UCreator.cs @@ -131,11 +131,7 @@ namespace FModel.Creator.Bases } protected void DrawPreview(SKCanvas c) - { - var i = Preview ?? DefaultPreview; - var x = i.Width < Width ? Width / 2 - i.Width / 2 : Margin; - c.DrawBitmap(i, new SKRect(x, Margin, x + i.Width - Margin * 2, i.Height - Margin), ImagePaint); - } + => c.DrawBitmap(Preview ?? DefaultPreview, new SKRect(Margin, Margin, Width - Margin, Height - Margin), ImagePaint); protected void DrawTextBackground(SKCanvas c) { @@ -231,4 +227,4 @@ namespace FModel.Creator.Bases } } } -} \ No newline at end of file +}