Commit 200a43b8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: make sure to always exit the fullscreen mode on Lion when terminating...

macosx: make sure to always exit the fullscreen mode on Lion when terminating to prevent ugly artifacts on the next launch
parent de0cdc77
...@@ -696,6 +696,13 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -696,6 +696,13 @@ static VLCMain *_o_sharedMainInstance = nil;
playlist_t * p_playlist = pl_Get( p_intf ); playlist_t * p_playlist = pl_Get( p_intf );
int returnedValue = 0; int returnedValue = 0;
/* always exit fullscreen on quit, otherwise we get ugly artifacts on the next launch */
if (OSX_LION && b_nativeFullscreenMode)
{
[o_mainwindow toggleFullScreen: self];
[NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
}
/* Save some interface state in configuration, at module quit */ /* Save some interface state in configuration, at module quit */
config_PutInt( p_intf, "random", var_GetBool( p_playlist, "random" ) ); config_PutInt( p_intf, "random", var_GetBool( p_playlist, "random" ) );
config_PutInt( p_intf, "loop", var_GetBool( p_playlist, "loop" ) ); config_PutInt( p_intf, "loop", var_GetBool( p_playlist, "loop" ) );
......
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