Commit 3050c601 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: support the Lion-style resizing within the black main window when...

macosx: support the Lion-style resizing within the black main window when _compiling_ (no joke) on Lion
(cherry picked from commit c30858cf)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1a67d630
......@@ -73,17 +73,14 @@ static VLCMainWindow *_o_sharedInstance = nil;
b_dark_interface = config_GetInt( VLCIntf, "macosx-interfacestyle" );
if (b_dark_interface)
{
#ifdef MAC_OS_X_VERSION_10_7
styleMask = NSBorderlessWindowMask | NSResizableWindowMask;
#else
styleMask = NSBorderlessWindowMask;
self = [super initWithContentRect:contentRect styleMask:styleMask
backing:backingType defer:flag];
}
else
{
self = [super initWithContentRect:contentRect styleMask:styleMask
backing:backingType defer:flag];
}
#endif
self = [super initWithContentRect:contentRect styleMask:styleMask
backing:backingType defer:flag];
[[VLCMain sharedInstance] updateTogglePlaylistState];
......@@ -401,6 +398,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
winrect.size.height = winrect.size.height - f_titleBarHeight;
[o_split_view setFrame: winrect];
[o_video_view setFrame: winrect];
[self display];
}
else
......@@ -916,7 +914,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
if ([o_video_view window] != self)
{
[o_video_view removeFromSuperviewWithoutNeedingDisplay];
[o_video_view setFrame: [o_right_split_view frame]];
[o_video_view setFrame: [o_split_view frame]];
[[self contentView] addSubview:o_video_view positioned:NSWindowAbove relativeTo:nil];
}
b_nonembedded = NO;
......
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