diff options
| author | Ox Cart | 2017-09-13 10:17:24 -0500 |
|---|---|---|
| committer | Ox Cart | 2017-09-13 10:17:24 -0500 |
| commit | e2e5b0ddab46550ba1ea5fff8b4540b804a0113b (patch) | |
| tree | fc7c198bd9f7df84da56f4ab544f4958be8f554b | |
| parent | 40b1000abc857c428c25f62b3c6ac3eb2153419b (diff) | |
| download | systray-e2e5b0ddab46550ba1ea5fff8b4540b804a0113b.tar.bz2 | |
Setting icon size explicitly on OS X
| -rw-r--r-- | systray_darwin.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/systray_darwin.m b/systray_darwin.m index 200d793..f1dc7ac 100644 --- a/systray_darwin.m +++ b/systray_darwin.m @@ -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); } |
