浏览代码

Update _cocoalayer.mm

pull/5425/head
annes 3 个月前
committed by GitHub
父节点
当前提交
c468628564
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/_cocoalayer.mm

+ 1
- 1
src/_cocoalayer.mm 查看文件

@ -3,7 +3,7 @@
#import <objc/runtime.h>
#include "_cocoalayer.h"
// Example: make a global function you can call
extern "C" void _cocoasetdockicon(unsigned char* data, int width, int height)
extern "C" void CocoaSetDockIcon(unsigned char* data, int width, int height)
{
NSImage *dockIcon = [[NSImage alloc] initWithSize:NSMakeSize(width, height)];
CGDataProviderRef provider = CGDataProviderCreateWithData(nullptr, data, width*height*4, nullptr);

正在加载...
取消
保存