fixed typo in prev. patch.

This commit is contained in:
Ozkan Sezer 2023-07-28 07:35:04 +03:00
parent 12b35c6a46
commit d3f2de7f29

View File

@ -8,7 +8,7 @@
#ifndef MAC_OS_X_VERSION_10_12
static const unsigned int NSWindowStyleMaskTitled = NSTitledWindowMask;
static const unsigned int NSWindowStyleMiniaturizableMask = NSMiniaturizableWindowMask;
static const unsigned int NSWindowStyleMaskMiniaturizable = NSMiniaturizableWindowMask;
static const unsigned int NSWindowStyleMaskClosable = NSClosableWindowMask;
#endif
@ -36,7 +36,7 @@ static void *CreateWindowCocoa(int w, int h)
rect.size.height = h;
rect.origin.y = CGDisplayPixelsHigh(kCGDirectMainDisplay) - rect.origin.y - rect.size.height;
style = (NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMiniaturizableMask);
style = (NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskMiniaturizable);
nswindow = [[NSWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:FALSE];
[nswindow makeKeyAndOrderFront:nil];