瀏覽代碼

Modify macOS implementation

Add style flags to window.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
80d8113b4f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/main.m

+ 1
- 1
src/main.m 查看文件

@@ -26,7 +26,7 @@ int main() {
.width = WINDOW_WIDTH,
.height = WINDOW_HEIGHT
},
.style_flags = CBR_WINDOW_STYLE_FLAG_TITLED,
.style_flags = CBR_WINDOW_STYLE_FLAG_TITLED | CBR_WINDOW_STYLE_FLAG_CLOSABLE | CBR_WINDOW_STYLE_FLAG_RESIZABLE | CBR_WINDOW_STYLE_FLAG_MINIATURIZABLE | CBR_WINDOW_STYLE_FLAG_FULL_SCREEN,
.title = [applicationName cStringUsingEncoding:NSUTF8StringEncoding]
});
[NSApp activateIgnoringOtherApps:YES];


Loading…
取消
儲存