mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
Disabled miniaturization for OS X startup window
Old versions of OS X don't support changing of window style mask
This commit is contained in:
parent
db207feed1
commit
3466a8c7a9
1 changed files with 1 additions and 4 deletions
|
@ -104,7 +104,7 @@ FConsoleWindow::FConsoleWindow()
|
|||
NSString* const title = [NSString stringWithFormat:@"%s %s - Console", GAMESIG, GetVersionString()];
|
||||
|
||||
[m_window initWithContentRect:initialRect
|
||||
styleMask:NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask
|
||||
styleMask:NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask
|
||||
backing:NSBackingStoreBuffered
|
||||
defer:NO];
|
||||
[m_window setMinSize:[m_window frame].size];
|
||||
|
@ -186,9 +186,6 @@ void FConsoleWindow::ShowFatalError(const char* const message)
|
|||
AddText(PalEntry(255, 255, 170), message);
|
||||
AddText("\n");
|
||||
|
||||
// It's impossible to restore minimized window in modal loop
|
||||
[m_window setStyleMask:[m_window styleMask] & ~NSMiniaturizableWindowMask];
|
||||
|
||||
[NSApp runModalForWindow:m_window];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue