diff --git a/src/SourceGit.csproj b/src/SourceGit.csproj index cae8f76c..cd37149a 100644 --- a/src/SourceGit.csproj +++ b/src/SourceGit.csproj @@ -1,6 +1,6 @@  - net46 + net48 WinExe true App.ico diff --git a/src/UI/Blame.xaml.cs b/src/UI/Blame.xaml.cs index 11630441..071825b8 100644 --- a/src/UI/Blame.xaml.cs +++ b/src/UI/Blame.xaml.cs @@ -93,7 +93,8 @@ namespace SourceGit.UI { FlowDirection.LeftToRight, new Typeface(blame.FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal), 12.0, - Brushes.Black); + Brushes.Black, + VisualTreeHelper.GetDpi(this).PixelsPerDip); var lineNumberWidth = formatted.Width + 16; var minWidth = area.ActualWidth - lineNumberWidth; diff --git a/src/UI/CommitViewer.xaml.cs b/src/UI/CommitViewer.xaml.cs index 70ae9832..95411d0a 100644 --- a/src/UI/CommitViewer.xaml.cs +++ b/src/UI/CommitViewer.xaml.cs @@ -437,7 +437,8 @@ namespace SourceGit.UI { FlowDirection.LeftToRight, new Typeface(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal), 12.0, - Brushes.Black); + Brushes.Black, + VisualTreeHelper.GetDpi(this).PixelsPerDip); var grid = new DataGrid(); grid.SetValue(Grid.RowProperty, 1); diff --git a/src/UI/DiffViewer.xaml.cs b/src/UI/DiffViewer.xaml.cs index 716207ed..c1474bc4 100644 --- a/src/UI/DiffViewer.xaml.cs +++ b/src/UI/DiffViewer.xaml.cs @@ -492,7 +492,8 @@ namespace SourceGit.UI { FlowDirection.LeftToRight, new Typeface(FontFamily, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal), 12.0, - Brushes.Black); + Brushes.Black, + VisualTreeHelper.GetDpi(this).PixelsPerDip); return formatted.Width + 16; }