Revert preview drawing

This commit is contained in:
GMatrixGames 2021-05-24 12:46:09 -04:00 committed by GitHub
parent 56596fb229
commit 39b8f02f16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}
}
}
}