diff options
author | jstebbins <[email protected]> | 2014-06-18 21:26:44 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-06-18 21:26:44 +0000 |
commit | 80a124ff2567ac45b26a606d425420a1ee590506 (patch) | |
tree | c298a7164dc5fd1d21e730fbd3ae66dc7820272b /macosx/HBPreviewController.m | |
parent | c152bd90aec1ab2d28edd26a08f3d4760d01b167 (diff) |
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
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 6 |
1 files changed, 3 insertions, 3 deletions
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", |