Setting icon size explicitly on OS X

This commit is contained in:
Ox Cart
2017-09-13 10:17:24 -05:00
parent 40b1000abc
commit e2e5b0ddab
+1
View File
@@ -159,6 +159,7 @@ void runInMainThread(SEL method, id object) {
void setIcon(const char* iconBytes, int length) {
NSData* buffer = [NSData dataWithBytes: iconBytes length:length];
NSImage *image = [[NSImage alloc] initWithData:buffer];
[image setSize:NSMakeSize(16, 16)];
runInMainThread(@selector(setIcon:), (id)image);
}