From 82069db7245a05cb929bdd0fec2c2c544b42e0bf Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 19 Sep 2020 13:04:33 +0100 Subject: [PATCH] Fix FMV aspect ratio. --- OpenRA.Mods.Common/Widgets/VqaPlayerWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/VqaPlayerWidget.cs b/OpenRA.Mods.Common/Widgets/VqaPlayerWidget.cs index 700aa68f4a..e3314d498c 100644 --- a/OpenRA.Mods.Common/Widgets/VqaPlayerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/VqaPlayerWidget.cs @@ -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);