Skip to content

Commit

Permalink
Merge pull request #272 from pstranak-sw/feature/hiDpiSupport
Browse files Browse the repository at this point in the history
Fix DPI scaling in Release builds
  • Loading branch information
tdanner committed Mar 8, 2021
2 parents 0728b8e + 245611e commit 532eba6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/SwqlStudio/Utils/DpiHelper.cs
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 532eba6

Please sign in to comment.