diff options
author | Akemi <der.richter@gmx.de> | 2016-12-15 23:06:04 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2016-12-16 16:32:26 +0100 |
commit | 2b8b17402ed59815019b309051b277ba4de82f3b (patch) | |
tree | 5181d5fbe3621fcf7da6bbb055d1e72c54dd89b9 /video/out/cocoa_common.m | |
parent | aab98776f602a4bec1a74ee87eb829aadf6437ea (diff) | |
download | mpv-2b8b17402ed59815019b309051b277ba4de82f3b.tar.bz2 mpv-2b8b17402ed59815019b309051b277ba4de82f3b.tar.xz |
cocoa: cosmetic fixes
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r-- | video/out/cocoa_common.m | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index c1a65ef2ee..164663c332 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -803,20 +803,24 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) @implementation MpvCocoaAdapter @synthesize vout = _video_output; -- (void)performAsyncResize:(NSSize)size { +- (void)performAsyncResize:(NSSize)size +{ struct vo_cocoa_state *s = self.vout->cocoa; vo_cocoa_resize_redraw(self.vout, size.width, size.height); } -- (BOOL)keyboardEnabled { +- (BOOL)keyboardEnabled +{ return !!mp_input_vo_keyboard_enabled(self.vout->input_ctx); } -- (BOOL)mouseEnabled { +- (BOOL)mouseEnabled +{ return !!mp_input_mouse_enabled(self.vout->input_ctx); } -- (void)setNeedsResize { +- (void)setNeedsResize +{ resize_event(self.vout); } @@ -830,7 +834,8 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) [self.vout->cocoa->window setMovableByWindowBackground:movable]; } -- (void)signalMouseMovement:(NSPoint)point { +- (void)signalMouseMovement:(NSPoint)point +{ mp_input_set_mouse_pos(self.vout->input_ctx, point.x, point.y); [self recalcMovableByWindowBackground:point]; } |