summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Controls')
-rw-r--r--win/C#/Controls/PictureSettings.Designer.cs1
-rw-r--r--win/C#/Controls/PictureSettings.cs8
2 files changed, 9 insertions, 0 deletions
diff --git a/win/C#/Controls/PictureSettings.Designer.cs b/win/C#/Controls/PictureSettings.Designer.cs
index 853d61982..30a893392 100644
--- a/win/C#/Controls/PictureSettings.Designer.cs
+++ b/win/C#/Controls/PictureSettings.Designer.cs
@@ -386,6 +386,7 @@ namespace Handbrake.Controls
this.lbl_max.Size = new System.Drawing.Size(15, 13);
this.lbl_max.TabIndex = 83;
this.lbl_max.Text = "--";
+ this.lbl_max.DoubleClick += new System.EventHandler(this.lbl_max_DoubleClick);
//
// label4
//
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs
index eed7ba560..70273cc64 100644
--- a/win/C#/Controls/PictureSettings.cs
+++ b/win/C#/Controls/PictureSettings.cs
@@ -489,5 +489,13 @@ namespace Handbrake.Controls
if (remainder == 0) return value;
return (value + remainder);
}
+
+ // Hidden UI feature to drop the MaxWidth / Height with the MaxWidth/Height label is double clicked
+ private void lbl_max_DoubleClick(object sender, EventArgs e)
+ {
+ PresetMaximumResolution = new Size(0,0);
+ if (PictureSettingsChanged != null)
+ PictureSettingsChanged(this, new EventArgs());
+ }
}
} \ No newline at end of file