Преглед изворни кода

Update _cocoalayer.mm

pull/5425/head
annes пре 2 месеци
committed by GitHub
родитељ
комит
c468628564
No known key found for this signature in database GPG Key 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);

Loading…
Откажи
Сачувај