Commit e89094b1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/mainwindow: added sanity check for the window size after restore (close #7275)

(cherry picked from commit 4ee68dda548ef30ebe63e747fef92544b42c256a)
parent 60af7910
...@@ -613,6 +613,14 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -613,6 +613,14 @@ static VLCMainWindow *_o_sharedInstance = nil;
[self hideSplitView]; [self hideSplitView];
i_lastSplitViewHeight = 300; i_lastSplitViewHeight = 300;
} }
/* sanity check for the window size */
frame = [self frame];
NSSize screenSize = [[self screen] frame].size;
if (screenSize.width <= frame.size.width || screenSize.height <= frame.size.height) {
nativeVideoSize = screenSize;
[self resizeWindow];
}
} }
#pragma mark - #pragma mark -
......
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