Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
401b75e3
Commit
401b75e3
authored
Apr 05, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Apr 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Scale large system tray icons down to fit status bar.
parent
787a937e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
cocoa_status_item.m
dlls/winemac.drv/cocoa_status_item.m
+13
-0
No files found.
dlls/winemac.drv/cocoa_status_item.m
View file @
401b75e3
...
...
@@ -149,8 +149,21 @@ void macdrv_set_status_item_image(macdrv_status_item s, CGImageRef cgimage)
NSImage
*
image
=
nil
;
if
(
cgimage
)
{
NSSize
size
;
CGFloat
maxSize
=
[[
NSStatusBar
systemStatusBar
]
thickness
];
BOOL
changed
=
FALSE
;
image
=
[[
NSImage
alloc
]
initWithCGImage
:
cgimage
size
:
NSZeroSize
];
CGImageRelease
(
cgimage
);
size
=
[
image
size
];
while
(
size
.
width
>
maxSize
||
size
.
height
>
maxSize
)
{
size
.
width
/=
2
.
0
;
size
.
height
/=
2
.
0
;
changed
=
TRUE
;
}
if
(
changed
)
[
image
setSize
:
size
];
}
[
statusItem
.
item
setImage
:
image
];
[
image
release
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment