summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-04-17 16:51:50 +0000
committerdynaflash <[email protected]>2007-04-17 16:51:50 +0000
commite11bcb1128453450d623cb1cbc309c35a22c8dde (patch)
treea95a731318e1918a30e4c459acd7a4bc2fd54108 /macosx/PictureController.mm
parent71cbbaf194a669b96d916b2100655d2ba47250c0 (diff)
MacGui: Picture Preview - Anamorphic
- Properly show the anamorhic height instead of output height. - This distorts the preview picture in HB's Picture Preview, but is actually correct. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@522 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r--macosx/PictureController.mm13
1 files changed, 10 insertions, 3 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm
index f978fc48f..96d0a2e81 100644
--- a/macosx/PictureController.mm
+++ b/macosx/PictureController.mm
@@ -145,7 +145,7 @@ static int GetAlignedSize( int size )
[fInfoField setStringValue: [NSString stringWithFormat:
@"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d", fTitle->width, fTitle->height,
- MaxOutputWidth, MaxOutputHeight, displayparwidth,
+ MaxOutputWidth, displayparheight, displayparwidth,
displayparheight]];
@@ -171,8 +171,15 @@ static int GetAlignedSize( int size )
[fWidthStepper setIntValue: MaxOutputWidth];
[fWidthField setIntValue: MaxOutputWidth];
- [fHeightStepper setIntValue: MaxOutputHeight];
- [fHeightField setIntValue: MaxOutputHeight];
+ /* This will show correct anamorphic height values, but
+ show distorted preview picture ratio */
+ [fHeightStepper setIntValue: fTitle->height-fTitle->job->crop[0]-fTitle->job->crop[1]];
+ [fHeightField setIntValue: fTitle->height-fTitle->job->crop[0]-fTitle->job->crop[1]];
+
+ /* This will show wrong anamorphic height values, but
+ show proper preview picture ratio */
+ //[fHeightStepper setIntValue: MaxOutputHeight];
+ //[fHeightField setIntValue: MaxOutputHeight];
[fRatioCheck setState: 0];
[fWidthStepper setEnabled: NO];