Skip to content

Commit 4130516

Browse files
committed
macOS: Add helper code for creating example app icons
1 parent 402400e commit 4130516

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/glfm_apple.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2870,6 +2870,12 @@ - (void)applicationWillFinishLaunching:(NSNotification *)notification {
28702870
contentFrame.origin.y = screenFrame.origin.y + screenFrame.size.height / 2 - height / 2;
28712871
contentFrame.size.width = width;
28722872
contentFrame.size.height = height;
2873+
#if 0
2874+
// Useful for creating example app icons
2875+
contentFrame.size.width = 128;
2876+
contentFrame.size.height = 128;
2877+
[self.window setStyleMask:NSWindowStyleMaskBorderless];
2878+
#endif
28732879
[self.window setFrame:[self.window frameRectForContentRect:contentFrame] display:NO];
28742880
}
28752881

0 commit comments

Comments
 (0)