diff options
-rw-r--r-- | video/out/cocoa_common.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index ee451ed1dc..8e06e637a4 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -924,9 +924,9 @@ void create_menu() s.height -= [self titleHeight]; if (s.width > s.height) { - s.width = ((double)s.height * ratio + 0.5); + s.width = ((double)s.height * ratio); } else { - s.height = ((double)s.width * 1/ratio + 0.5); + s.height = ((double)s.width * 1.0/ratio); } s.height += [self titleHeight]; |