diff --git a/VocaluxeLib/CHelper.cs b/VocaluxeLib/CHelper.cs index fa5fb2f4..35a6ae5c 100644 --- a/VocaluxeLib/CHelper.cs +++ b/VocaluxeLib/CHelper.cs @@ -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; } diff --git a/VocaluxeLib/Enums.cs b/VocaluxeLib/Enums.cs index 84252cfa..02cb86a7 100644 --- a/VocaluxeLib/Enums.cs +++ b/VocaluxeLib/Enums.cs @@ -67,6 +67,7 @@ namespace VocaluxeLib Automatic, Crop, LetterBox, + PillarBox, Stretch, Zoom1, Zoom2