Skip to content

Commit

Permalink
Removed no longer needed workarounds for some types from the DpiManag…
Browse files Browse the repository at this point in the history
…er class.
  • Loading branch information
xvitaly committed Aug 22, 2024
1 parent 80b7f7a commit 487201f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/corelib/DpiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ namespace srcrepair.core
/// </summary>
public static class DpiManager
{
/// <summary>
/// Correctly scale columns width in DataGridView container on high
/// pixel density displays.
/// </summary>
/// <param name="ScaleSource">DataGridView control name.</param>
/// <param name="ScaleFactor">Scale factor value.</param>
public static void ScaleColumnsInControl(DataGridView ScaleSource, SizeF ScaleFactor)
{
foreach (DataGridViewColumn Column in ScaleSource.Columns)
{
Column.Width = (int)Math.Round(Column.Width * ScaleFactor.Width);
}
}

/// <summary>
/// Correctly scale columns width in ListView container on high
/// pixel density displays.
Expand Down

0 comments on commit 487201f

Please sign in to comment.