Make Dpi scaling the default

Have settings toggle to fall back to Font based scaling
This commit is contained in:
Kurt 2023-05-09 10:50:15 -07:00
parent ea052fb6d1
commit 41762f4f67
3 changed files with 7 additions and 2 deletions

View file

@ -477,8 +477,8 @@ namespace PKHeX.WinForms
// Main
//
AllowDrop = true;
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
ClientSize = new System.Drawing.Size(856, 385);
Controls.Add(splitContainer2);
FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;

View file

@ -27,6 +27,8 @@ public partial class Main : Form
FormLoadInitialSettings(args, out bool showChangelog, out bool BAKprompt);
InitializeComponent();
if (Settings.Display.DisableScalingDpi)
AutoScaleMode = AutoScaleMode.Font;
C_SAV.SetEditEnvironment(new SaveDataEditor<PictureBox>(new FakeSaveFile(), PKME_Tabs));
FormLoadAddEvents();
#if DEBUG // translation updater -- all controls are added at this point -- call translate now

View file

@ -372,6 +372,9 @@ public sealed class DisplaySettings
[LocalizedDescription("Focus border indentation for custom drawn image controls.")]
public int FocusBorderDeflate { get; set; } = 1;
[LocalizedDescription("Disables the GUI scaling based on Dpi on program startup, falling back to font scaling.")]
public bool DisableScalingDpi { get; set; }
}
[Serializable]