From f03c5c59f7a50b7c7b0e324d14f52daabddf198f Mon Sep 17 00:00:00 2001 From: HIGAN Date: Thu, 22 Jun 2017 20:35:56 +0800 Subject: [PATCH] Fix 'AspectRatio' not working --- Meta.Vlc.Wpf/VlcPlayer.Helper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta.Vlc.Wpf/VlcPlayer.Helper.cs b/Meta.Vlc.Wpf/VlcPlayer.Helper.cs index 225860b..593729b 100644 --- a/Meta.Vlc.Wpf/VlcPlayer.Helper.cs +++ b/Meta.Vlc.Wpf/VlcPlayer.Helper.cs @@ -25,10 +25,10 @@ private Size GetScaleTransform() return new Size(_context.DisplayWidth / _context.DisplayHeight * _context.Height / _context.Width, 1.0); case AspectRatio._16_9: - return new Size(1.0 * 16 / 9 * _context.Height, 1.0); + return new Size(1.0 * 16 / 9 * _context.Height / _context.Width, 1.0); case AspectRatio._4_3: - return new Size(1.0 * 4 / 3 * _context.Height, 1.0); + return new Size(1.0 * 4 / 3 * _context.Height / _context.Width, 1.0); } return new Size(1.0, 1.0); }