Skip to content

Commit

Permalink
Fix 'AspectRatio' not working
Browse files Browse the repository at this point in the history
  • Loading branch information
devkanro committed Jun 22, 2017
1 parent aecf57c commit f03c5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Meta.Vlc.Wpf/VlcPlayer.Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f03c5c5

Please sign in to comment.