From c4686285645d49da07f5b8bbd9a0d1adf2bb72d1 Mon Sep 17 00:00:00 2001 From: annes Date: Tue, 2 Dec 2025 00:06:53 +0800 Subject: [PATCH] Update _cocoalayer.mm --- src/_cocoalayer.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_cocoalayer.mm b/src/_cocoalayer.mm index b8151f498..a02312395 100644 --- a/src/_cocoalayer.mm +++ b/src/_cocoalayer.mm @@ -3,7 +3,7 @@ #import #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);