Skip to content

Commit

Permalink
Fix DPI scaling in Release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
pstranak-sw committed Mar 8, 2021
1 parent 0728b8e commit 245611e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/SwqlStudio/Utils/DpiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ internal static class DpiHelper
/// <para>This should be called in the <paramref name="control"/>'s constructor.</para></remarks>
public static void FixFont(Control control)
{
control.SuspendLayout();
control.Font = DefaultFont;
control.ResumeLayout();
}

/// <summary>
Expand Down

0 comments on commit 245611e

Please sign in to comment.