diff options
Diffstat (limited to 'video/out/cocoa-cb/window.swift')
-rw-r--r-- | video/out/cocoa-cb/window.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift index ce7947cb90..9391b0d652 100644 --- a/video/out/cocoa-cb/window.swift +++ b/video/out/cocoa-cb/window.swift @@ -337,7 +337,7 @@ class Window: NSWindow, NSWindowDelegate { } func aspectFit(rect r: NSRect, in rTarget: NSRect) -> NSRect { - var s = rTarget.width / r.width; + var s = rTarget.width / r.width if r.height*s > rTarget.height { s = rTarget.height / r.height } |