From 2b8b17402ed59815019b309051b277ba4de82f3b Mon Sep 17 00:00:00 2001 From: Akemi Date: Thu, 15 Dec 2016 23:06:04 +0100 Subject: cocoa: cosmetic fixes --- video/out/cocoa_common.m | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'video/out/cocoa_common.m') 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]; } -- cgit v1.2.3