summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-02-06 22:02:23 +0000
committersr55 <[email protected]>2009-02-06 22:02:23 +0000
commitc33b94692d6d9c7a609ace7cdb91da937de67775 (patch)
tree476cae4ae319d762f914157273d898ba24e8bd6e /win/C#/frmMain.cs
parentadd744cb78cc588be94e29b61722e41627d2f9a4 (diff)
WinGui:
- Implement DRC 0, default 0 - Tidy up audio query generation a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2127 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 3c77a8d1a..98d99f4a0 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1283,7 +1283,11 @@ namespace Handbrake
}
private void tb_drc_Scroll(object sender, EventArgs e)
{
- double value = (tb_drc.Value / 10.0) + 1;
+ double value;
+ if (tb_drc.Value == 0) value = 0;
+ else
+ value = ((tb_drc.Value-1) / 10.0) + 1;
+
lbl_drc.Text = value.ToString();
// Update an item in the Audio list if required.
@@ -1388,7 +1392,9 @@ namespace Handbrake
drp_audbit_1.Text = lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[4].Text;
double drcValue; int drcCalculated;
double.TryParse(lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[5].Text, out drcValue);
- drcValue = (drcValue * 10) - 10;
+ if (drcValue == 0) drcCalculated = 0;
+ else
+ drcValue = ((drcValue * 10)+1) -10;
int.TryParse(drcValue.ToString(), out drcCalculated);
tb_drc.Value = drcCalculated;
}
@@ -2091,6 +2097,7 @@ namespace Handbrake
#endregion
+
// This is the END of the road ------------------------------------------------------------------------------
}
} \ No newline at end of file