Commit 4ee68dda 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)

parent 14cc1eed
......@@ -624,6 +624,14 @@ static VLCMainWindow *_o_sharedInstance = nil;
[self hideSplitView];
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 -
......
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