]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Sun, 24 Jun 2007 20:09:28 +0000 (20:09 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 24 Jun 2007 20:09:28 +0000 (20:09 +0000)
- 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

win/Handbrake.suo
win/Handbrake/frmMain.vb

index 260fc12130eb27dc8e83ce8cd475d1ca715b4616..036ca4281b7d995640f46614d2e2cf7e35ef8ff4 100644 (file)
Binary files a/win/Handbrake.suo and b/win/Handbrake.suo differ
index 7a63f3edf48893b6ba12dc0d3cdb8a1597b0775e..1bffcd51e71658a09ee9339b5f9f29f66aa3594d 100644 (file)
@@ -597,6 +597,13 @@ Public Class frmMain
                     text_width.BackColor = Color.LightGreen\r
                 End If\r
             End If\r
+\r
+            If (Not lbl_Aspect.Text.Equals("Select a Title")) Then\r
+                Dim height As Integer = text_width.Text / lbl_Aspect.Text\r
+                Dim mod16 As Integer = height Mod 16\r
+                height = height - mod16\r
+                text_height.Text = height\r
+            End If\r
            \r
         Catch ex As Exception\r
 \r