summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-01-14 17:10:08 +0100
committerAkemi <der.richter@gmx.de>2017-01-19 14:54:22 +0100
commitfe02e5023c4966a4d97a0999eca92c68be8aa15e (patch)
tree27225b950fa9cc08d571d5bf731de6725beb12f6 /video/out/cocoa
parent202f9b218af093e2002bf2551b44afffcba26f7d (diff)
downloadmpv-fe02e5023c4966a4d97a0999eca92c68be8aa15e.tar.bz2
mpv-fe02e5023c4966a4d97a0999eca92c68be8aa15e.tar.xz
cocoa: move updateBorder method to the protocol
we are calling the method on a NSWindow object that may not respond to that call, since its a method of MpvVideoWindow. add the method to our protocol and rename that protocol to reflect the change.
Diffstat (limited to 'video/out/cocoa')
-rw-r--r--video/out/cocoa/window.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/cocoa/window.h b/video/out/cocoa/window.h
index 352eba61d6..af04b2b1c6 100644
--- a/video/out/cocoa/window.h
+++ b/video/out/cocoa/window.h
@@ -18,14 +18,14 @@
#import <Cocoa/Cocoa.h>
#import "video/out/cocoa/mpvadapter.h"
-@protocol MpvSizing
+@protocol MpvWindowUpdate
- (void)queueNewVideoSize:(NSSize)newSize;
+- (void)updateBorder:(int)border;
@end
-@interface MpvVideoWindow : NSWindow <NSWindowDelegate, MpvSizing>
+@interface MpvVideoWindow : NSWindow <NSWindowDelegate, MpvWindowUpdate>
@property(nonatomic, retain) MpvCocoaAdapter *adapter;
- (BOOL)canBecomeKeyWindow;
- (BOOL)canBecomeMainWindow;
- (void)mulSize:(float)multiplier;
-- (void)updateBorder:(int)border;
@end