Commit d8ad30f9 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCVideoCommon.m: Fix fillscreen.

parent df2362a8
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
CGFloat xRatio = CGRectGetWidth(bounds)/originalVideoSize.width; CGFloat xRatio = CGRectGetWidth(bounds)/originalVideoSize.width;
CGFloat yRatio = CGRectGetHeight(bounds)/originalVideoSize.height; CGFloat yRatio = CGRectGetHeight(bounds)/originalVideoSize.height;
CGFloat ratio = fillScreenEntirely ? MAX(xRatio, yRatio) : MIN(xRatio, yRatio); CGFloat ratio = fillScreenEntirely ? MIN(xRatio, yRatio) : MAX(xRatio, yRatio);
videoRect.size.width = ratio*originalVideoSize.width; videoRect.size.width = ratio*originalVideoSize.width;
videoRect.size.height = ratio*originalVideoSize.height; videoRect.size.height = ratio*originalVideoSize.height;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment