From 0419cf96fc26912c9b710f6a63a5d38986f5c05a Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 25 May 2021 17:52:33 +0800 Subject: [PATCH] optimize: render avatar using BitmapScalingMode.HighQuality --- src/Views/Controls/Avatar.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Views/Controls/Avatar.cs b/src/Views/Controls/Avatar.cs index 9b933ccf..eebd2264 100644 --- a/src/Views/Controls/Avatar.cs +++ b/src/Views/Controls/Avatar.cs @@ -78,6 +78,10 @@ namespace SourceGit.Views.Controls { private int colorIdx = 0; private FormattedText label = null; + public Avatar() { + SetValue(RenderOptions.BitmapScalingModeProperty, BitmapScalingMode.HighQuality); + } + /// /// 渲染实现 ///