Commit 60e9829d authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed warnings

parent 8b7486e8
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
return nil; return nil;
} }
VLCControls * o_controls = (VLCControls *)[[NSApp delegate] controls]; VLCControls * o_controls = [[VLCMain sharedInstance] controls];
if ( o_controls ) if ( o_controls )
{ {
...@@ -143,12 +143,10 @@ ...@@ -143,12 +143,10 @@
@implementation NSApplication(ScriptSupport) @implementation NSApplication(ScriptSupport)
- (BOOL) scriptFullscreenMode { - (BOOL) scriptFullscreenMode {
VLCControls * o_controls = (VLCControls *)[[self delegate] controls]; return [[[VLCMain sharedInstance] controls] isFullscreen];
return [o_controls isFullscreen];
} }
- (void) setScriptFullscreenMode: (BOOL) mode { - (void) setScriptFullscreenMode: (BOOL) mode {
VLCControls * o_controls = (VLCControls *)[[self delegate] controls]; VLCControls * o_controls = [[VLCMain sharedInstance] controls];
if (mode == [o_controls isFullscreen]) return; if (mode == [o_controls isFullscreen]) return;
[o_controls toogleFullscreen: self]; [o_controls toogleFullscreen: self];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment