summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/window.m
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2016-12-15 23:06:04 +0100
committerAkemi <der.richter@gmx.de>2016-12-16 16:32:26 +0100
commit2b8b17402ed59815019b309051b277ba4de82f3b (patch)
tree5181d5fbe3621fcf7da6bbb055d1e72c54dd89b9 /video/out/cocoa/window.m
parentaab98776f602a4bec1a74ee87eb829aadf6437ea (diff)
downloadmpv-2b8b17402ed59815019b309051b277ba4de82f3b.tar.bz2
mpv-2b8b17402ed59815019b309051b277ba4de82f3b.tar.xz
cocoa: cosmetic fixes
Diffstat (limited to 'video/out/cocoa/window.m')
-rw-r--r--video/out/cocoa/window.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m
index 6d63263cb4..68e5222a03 100644
--- a/video/out/cocoa/window.m
+++ b/video/out/cocoa/window.m
@@ -309,7 +309,8 @@
_unfs_content_frame = [self frameRect:_unfs_content_frame forCenteredContentSize:newSize];
}
-- (void)tryDequeueSize {
+- (void)tryDequeueSize
+{
if (_queued_video_size.width <= 0.0 || _queued_video_size.height <= 0.0)
return;
@@ -330,7 +331,8 @@
}
}
-- (void)windowDidBecomeMain:(NSNotification *)notification {
+- (void)windowDidBecomeMain:(NSNotification *)notification
+{
[self tryDequeueSize];
}
@end