summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-18 16:00:21 -0500
committerJune McEnroe <june@causal.agency>2019-01-18 16:00:21 -0500
commit0ade4c456b613527a1ffb1f4090c867120cce4f4 (patch)
tree15de7d1b4dff1dcd89cfa4c5707ab71929645129
parentAdd Girlpool Tiny Desk Concert (diff)
downloadsrc-0ade4c456b613527a1ffb1f4090c867120cce4f4.tar.gz
src-0ade4c456b613527a1ffb1f4090c867120cce4f4.zip
Update gfx-cocoa constants for new macOS
-rw-r--r--bin/gfx-cocoa.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/gfx-cocoa.m b/bin/gfx-cocoa.m
index ce88dd78..8fbbad37 100644
--- a/bin/gfx-cocoa.m
+++ b/bin/gfx-cocoa.m
@@ -139,10 +139,10 @@ int main(int argc, char *argv[]) {
 	[NSApp setMainMenu: [NSMenu new]];
 	[[NSApp mainMenu] addItem: menuItem];
 
-	NSUInteger style = NSTitledWindowMask
-		| NSClosableWindowMask
-		| NSMiniaturizableWindowMask
-		| NSResizableWindowMask;
+	NSUInteger style = NSWindowStyleMaskTitled
+		| NSWindowStyleMaskClosable
+		| NSWindowStyleMaskMiniaturizable
+		| NSWindowStyleMaskResizable;
 	NSWindow *window = [
 		[NSWindow alloc]
 		initWithContentRect: NSMakeRect(0, 0, 800, 600)