[vlc-commits] gui/minimal_macosx: Codestyle adjustments

Marvin Scholz git at videolan.org
Sun Nov 26 02:18:21 CET 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Nov 26 02:08:05 2017 +0100| [3d7477bb9674b51a678294411c4a53e239c01444] | committer: Marvin Scholz

gui/minimal_macosx: Codestyle adjustments

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d7477bb9674b51a678294411c4a53e239c01444
---

 modules/gui/minimal_macosx/VLCMinimalVoutWindow.m | 7 +++++--
 modules/gui/minimal_macosx/intf.m                 | 6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m b/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
index e09369b207..d41c7eda44 100644
--- a/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
+++ b/modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
@@ -34,12 +34,15 @@
 @implementation VLCMinimalVoutWindow
 - (id)initWithContentRect:(NSRect)contentRect
 {
-    if( self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])
+    if( self = [super initWithContentRect:contentRect
+                                styleMask:NSBorderlessWindowMask
+                                  backing:NSBackingStoreBuffered
+                                    defer:NO])
     {
         initialFrame = contentRect;
         [self setBackgroundColor:[NSColor blackColor]];
         [self setHasShadow:YES];
-        [self setMovableByWindowBackground: YES];
+        [self setMovableByWindowBackground:YES];
         [self center];
     }
     return self;
diff --git a/modules/gui/minimal_macosx/intf.m b/modules/gui/minimal_macosx/intf.m
index 311fd3c031..dff4bfd5a1 100644
--- a/modules/gui/minimal_macosx/intf.m
+++ b/modules/gui/minimal_macosx/intf.m
@@ -132,7 +132,7 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
 
 static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
 {
-    NSWindow * o_window = [(__bridge id)p_wnd->handle.nsobject window];
+    NSWindow* o_window = [(__bridge id)p_wnd->handle.nsobject window];
     if (!o_window) {
         msg_Err(p_wnd, "failed to recover cocoa window");
         return VLC_EGENERIC;
@@ -143,7 +143,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
         {
             unsigned i_state = va_arg(args, unsigned);
 
-            [o_window setLevel: i_state];
+            [o_window setLevel:i_state];
 
             return VLC_SUCCESS;
         }
@@ -156,7 +156,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
                     NSRect theFrame = [o_window frame];
                     theFrame.size.width = i_width;
                     theFrame.size.height = i_height;
-                    [o_window setFrame:theFrame display: YES animate: YES];
+                    [o_window setFrame:theFrame display:YES animate:YES];
                 });
             }
             return VLC_SUCCESS;



More information about the vlc-commits mailing list