Merge pull request #500 from Vocaluxe/PillarBoxFix

Adding PillarBox as own EAspect (fix #499)
This commit is contained in:
daggeg authored and GitHub committed 2020-02-18 10:40:44 +01:00
commit aa17822f53
2 files changed
+6 -6

No files matched your search

+5 -6
View File
@@ -139,12 +139,7 @@ namespace VocaluxeLib
}
break;
case EAspect.LetterBox:
if (boundsAspectRatio == aspectRatio) // Pillarbox
{
scaledWidth = bounds.W * 0.77f;
scaledHeight = bounds.W / aspectRatio;
}
else if (boundsAspectRatio < aspectRatio)
if (boundsAspectRatio < aspectRatio)
{
scaledWidth = bounds.W;
scaledHeight = bounds.W / aspectRatio;
@@ -155,6 +150,10 @@ namespace VocaluxeLib
scaledWidth = bounds.H * aspectRatio;
}
break;
case EAspect.PillarBox:
scaledWidth = bounds.W * 0.77f;
scaledHeight = bounds.W / aspectRatio;
break;
default:
return bounds;
}
+1
View File
@@ -67,6 +67,7 @@ namespace VocaluxeLib
Automatic,
Crop,
LetterBox,
PillarBox,
Stretch,
Zoom1,
Zoom2