From: sr55 Date: Sun, 24 Jun 2007 20:09:28 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.0~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=020d63c7c6cd36a0d231ffe02f17212a0606b419;p=handbrake 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 --- diff --git a/win/Handbrake.suo b/win/Handbrake.suo index 260fc1213..036ca4281 100644 Binary files a/win/Handbrake.suo and b/win/Handbrake.suo differ 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