From 80a124ff2567ac45b26a606d425420a1ee590506 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 18 Jun 2014 21:26:44 +0000 Subject: macui/cli/libhb: cleanup macui: Simplifies code in Controller.m and fixes a few bugs macui: Fixes "Windows 8 Phone" preset aspect ratio problem macui: round up to next mod boundary when limiting to title dimensions - crop libhb: Eliminates hb_fix_aspect and hb_set_size functions. libhb: Makes hb_validate_size a passthru to hb_set_anamorphic_size cli: eliminage use of hb_validate_size git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6215 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBPreviewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/HBPreviewController.m') diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index d71f996c3..76d756a0f 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -621,19 +621,19 @@ typedef enum ViewMode : NSUInteger { /* Set the picture size display fields below the Preview Picture*/ int display_width; display_width = title->job->width * title->job->anamorphic.par_width / title->job->anamorphic.par_height; - if( title->job->anamorphic.mode == 1 ) // Original PAR Implementation + if (title->job->anamorphic.mode == HB_ANAMORPHIC_STRICT) // Original PAR Implementation { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Strict", title->width, title->height, title->job->width, title->job->height, display_width, title->job->height]; } - else if (title->job->anamorphic.mode == 2) // Loose Anamorphic + else if (title->job->anamorphic.mode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Loose", title->width, title->height, title->job->width, title->job->height, display_width, title->job->height]; } - else if (title->job->anamorphic.mode == 3) // Custom Anamorphic + else if (title->job->anamorphic.mode == HB_ANAMORPHIC_CUSTOM) // Custom Anamorphic { sizeInfoString = [NSString stringWithFormat: @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Custom", -- cgit v1.2.3