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

macosx: fixed warnings

parent 8b7486e8
......@@ -95,7 +95,7 @@
return nil;
}
VLCControls * o_controls = (VLCControls *)[[NSApp delegate] controls];
VLCControls * o_controls = [[VLCMain sharedInstance] controls];
if ( o_controls )
{
......@@ -143,12 +143,10 @@
@implementation NSApplication(ScriptSupport)
- (BOOL) scriptFullscreenMode {
VLCControls * o_controls = (VLCControls *)[[self delegate] controls];
return [o_controls isFullscreen];
return [[[VLCMain sharedInstance] controls] isFullscreen];
}
- (void) setScriptFullscreenMode: (BOOL) mode {
VLCControls * o_controls = (VLCControls *)[[self delegate] controls];
VLCControls * o_controls = [[VLCMain sharedInstance] controls];
if (mode == [o_controls isFullscreen]) return;
[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