Fix FMV aspect ratio.

This commit is contained in:
Paul Chote
2020-09-19 13:04:33 +01:00
committed by reaperrr
parent 5a7dc385a3
commit 82069db724

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Widgets
video.Height),
TextureChannel.RGBA);
var scale = Math.Min((float)RenderBounds.Width / video.Width, (float)RenderBounds.Height / video.Height * AspectRatio);
var scale = Math.Min((float)RenderBounds.Width / video.Width, RenderBounds.Height / (video.Height * AspectRatio));
videoOrigin = new float2(
RenderBounds.X + (RenderBounds.Width - scale * video.Width) / 2,
RenderBounds.Y + (RenderBounds.Height - scale * video.Height * AspectRatio) / 2);