Merge pull request #500 from Vocaluxe/PillarBoxFix
Adding PillarBox as own EAspect (fix #499)
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -139,12 +139,7 @@ namespace VocaluxeLib
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EAspect.LetterBox:
|
case EAspect.LetterBox:
|
||||||
if (boundsAspectRatio == aspectRatio) // Pillarbox
|
if (boundsAspectRatio < aspectRatio)
|
||||||
{
|
|
||||||
scaledWidth = bounds.W * 0.77f;
|
|
||||||
scaledHeight = bounds.W / aspectRatio;
|
|
||||||
}
|
|
||||||
else if (boundsAspectRatio < aspectRatio)
|
|
||||||
{
|
{
|
||||||
scaledWidth = bounds.W;
|
scaledWidth = bounds.W;
|
||||||
scaledHeight = bounds.W / aspectRatio;
|
scaledHeight = bounds.W / aspectRatio;
|
||||||
@@ -155,6 +150,10 @@ namespace VocaluxeLib
|
|||||||
scaledWidth = bounds.H * aspectRatio;
|
scaledWidth = bounds.H * aspectRatio;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case EAspect.PillarBox:
|
||||||
|
scaledWidth = bounds.W * 0.77f;
|
||||||
|
scaledHeight = bounds.W / aspectRatio;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return bounds;
|
return bounds;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ namespace VocaluxeLib
|
|||||||
Automatic,
|
Automatic,
|
||||||
Crop,
|
Crop,
|
||||||
LetterBox,
|
LetterBox,
|
||||||
|
PillarBox,
|
||||||
Stretch,
|
Stretch,
|
||||||
Zoom1,
|
Zoom1,
|
||||||
Zoom2
|
Zoom2
|
||||||
|
|||||||
Reference in new issue
Block a user