• R/O
  • HTTP
  • SSH
  • HTTPS

handbrake-jp: Commit

handbrake-jp project\'s main repository.


Commit MetaInfo

Revisión0c49856c793034b91cb5360acf97b053da08722b (tree)
Tiempo2010-01-04 19:40:26
Autorunknown <hirom@.(no...>
Commiterunknown

Log Message

fix: invalid real size shown when anamorphic param chenged

Cambiar Resumen

Diferencia

--- a/win/C#/Controls/PictureSettings.Designer.cs
+++ b/win/C#/Controls/PictureSettings.Designer.cs
@@ -472,6 +472,7 @@ namespace Handbrake.Controls
472472 this.updownParHeight.Name = "updownParHeight";
473473 this.updownParHeight.Size = new System.Drawing.Size(53, 21);
474474 this.updownParHeight.TabIndex = 112;
475+ this.updownParHeight.ValueChanged += new System.EventHandler(this.text_width_ValueChanged);
475476 //
476477 // label6
477478 //
@@ -535,6 +536,7 @@ namespace Handbrake.Controls
535536 this.updownParWidth.Name = "updownParWidth";
536537 this.updownParWidth.Size = new System.Drawing.Size(53, 21);
537538 this.updownParWidth.TabIndex = 111;
539+ this.updownParWidth.ValueChanged += new System.EventHandler(this.text_width_ValueChanged);
538540 //
539541 // drp_anamorphic
540542 //
--- a/win/C#/Controls/PictureSettings.cs
+++ b/win/C#/Controls/PictureSettings.cs
@@ -163,9 +163,12 @@ namespace Handbrake.Controls
163163
164164 if (check_KeepAR.CheckState == CheckState.Checked && Source != null)
165165 {
166+ _preventChangingWidth = true;
166167 updownParWidth.Value = updownDisplayWidth.Value;
167168 updownParHeight.Value = text_width.Value;
169+ _preventChangingWidth = false;
168170 }
171+ labelDisplaySize.Text = CalculateAnamorphicSizes().Width + "x" + CalculateAnamorphicSizes().Height;
169172 break;
170173 default:
171174 labelDisplaySize.Text = CalculateAnamorphicSizes().Width + "x" + CalculateAnamorphicSizes().Height;
@@ -290,7 +293,7 @@ namespace Handbrake.Controls
290293 updownParHeight.Value = text_width.Value;
291294 _preventChangingHeight = false;
292295 }
293-
296+ labelDisplaySize.Text = CalculateAnamorphicSizes().Width + "x" + CalculateAnamorphicSizes().Height;
294297 }
295298
296299 // Anamorphic Controls
--- a/win/C#/Functions/PresetLoader.cs
+++ b/win/C#/Functions/PresetLoader.cs
@@ -131,9 +131,9 @@ namespace Handbrake.Functions
131131 mainWindow.PictureSettings.text_width.Value = mainWindow.selectedTitle.Resolution.Width;
132132
133133 // Custom Anamorphic Controls
134- mainWindow.PictureSettings.updownDisplayWidth.Text = presetQuery.displayWidthValue.ToString();
135134 mainWindow.PictureSettings.updownParHeight.Text = presetQuery.pixelAspectWidth.ToString();
136135 mainWindow.PictureSettings.updownParWidth.Text = presetQuery.pixelAspectHeight.ToString();
136+ mainWindow.PictureSettings.updownDisplayWidth.Text = presetQuery.displayWidthValue.ToString();
137137 mainWindow.PictureSettings.drp_modulus.SelectedItem = presetQuery.AnamorphicModulus;
138138
139139 #endregion
Show on old repository browser