From d64197344670620428cb126fbe1d028831e066bb Mon Sep 17 00:00:00 2001 From: Michael Delpach Date: Sat, 11 Jul 2020 13:26:42 +0800 Subject: [PATCH] ImageHistory DPI issue fixed and tested --- ShareX.HistoryLib/Forms/ImageHistoryForm.Designer.cs | 3 ++- ShareX.HistoryLib/Forms/ImageHistorySettingsForm.Designer.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ShareX.HistoryLib/Forms/ImageHistoryForm.Designer.cs b/ShareX.HistoryLib/Forms/ImageHistoryForm.Designer.cs index 81df84482..3bb91ff2b 100644 --- a/ShareX.HistoryLib/Forms/ImageHistoryForm.Designer.cs +++ b/ShareX.HistoryLib/Forms/ImageHistoryForm.Designer.cs @@ -151,7 +151,8 @@ private void InitializeComponent() // ImageHistoryForm // resources.ApplyResources(this, "$this"); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.SystemColors.Window; this.Controls.Add(this.tscMain); this.KeyPreview = true; diff --git a/ShareX.HistoryLib/Forms/ImageHistorySettingsForm.Designer.cs b/ShareX.HistoryLib/Forms/ImageHistorySettingsForm.Designer.cs index a1f03c186..fd07dd618 100644 --- a/ShareX.HistoryLib/Forms/ImageHistorySettingsForm.Designer.cs +++ b/ShareX.HistoryLib/Forms/ImageHistorySettingsForm.Designer.cs @@ -119,7 +119,8 @@ private void InitializeComponent() // ImageHistorySettingsForm // resources.ApplyResources(this, "$this"); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.SystemColors.Window; this.Controls.Add(this.cbFilterMissingFiles); this.Controls.Add(this.cbRememberSearchText);