summaryrefslogtreecommitdiffstats
path: root/win/Handbrake
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-06-24 20:09:28 +0000
committersr55 <[email protected]>2007-06-24 20:09:28 +0000
commit020d63c7c6cd36a0d231ffe02f17212a0606b419 (patch)
treefbe791ebb0cb89514da8df3eea51751910bce561 /win/Handbrake
parent365102574004b2484836a4ab0e8bc37e8a62d742 (diff)
WinGui:
- Quick mod16 height calculation when the user enters a width. This doesn't take cropping into account! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@638 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/Handbrake')
-rw-r--r--win/Handbrake/frmMain.vb7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/Handbrake/frmMain.vb b/win/Handbrake/frmMain.vb
index 7a63f3edf..1bffcd51e 100644
--- a/win/Handbrake/frmMain.vb
+++ b/win/Handbrake/frmMain.vb
@@ -597,6 +597,13 @@ Public Class frmMain
text_width.BackColor = Color.LightGreen
End If
End If
+
+ If (Not lbl_Aspect.Text.Equals("Select a Title")) Then
+ Dim height As Integer = text_width.Text / lbl_Aspect.Text
+ Dim mod16 As Integer = height Mod 16
+ height = height - mod16
+ text_height.Text = height
+ End If
Catch ex As Exception