Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3a5e6c43
Commit
3a5e6c43
authored
Jan 12, 2011
by
Ken Thomases
Committed by
Alexandre Julliard
Jan 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: On Mac, understand and keep 256x256 Vista-style icons.
parent
597a2f50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+6
-5
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
3a5e6c43
...
...
@@ -863,17 +863,18 @@ static HRESULT platform_write_icon(IStream *icoStream, int exeIndex, LPCWSTR ico
for
(
i
=
0
;
i
<
numEntries
;
i
++
)
{
int
slot
;
int
width
=
iconDirEntries
[
i
].
bWidth
?
iconDirEntries
[
i
].
bWidth
:
256
;
int
height
=
iconDirEntries
[
i
].
bHeight
?
iconDirEntries
[
i
].
bHeight
:
256
;
WINE_TRACE
(
"[%d]: %d x %d @ %d
\n
"
,
i
,
iconDirEntries
[
i
].
bWidth
,
iconDirEntries
[
i
].
bHeight
,
iconDirEntries
[
i
].
wBitCount
);
slot
=
size_to_slot
(
iconDirEntries
[
i
].
bWidth
);
WINE_TRACE
(
"[%d]: %d x %d @ %d
\n
"
,
i
,
width
,
height
,
iconDirEntries
[
i
].
wBitCount
);
slot
=
size_to_slot
(
width
);
if
(
slot
<
0
)
continue
;
if
(
iconDirEntries
[
i
].
wBitCount
>=
best
[
slot
].
maxBits
&&
(
iconDirEntries
[
i
].
bHeight
*
iconDirEntries
[
i
].
bW
idth
)
>=
best
[
slot
].
maxPixels
)
(
height
*
w
idth
)
>=
best
[
slot
].
maxPixels
)
{
best
[
slot
].
index
=
i
;
best
[
slot
].
maxPixels
=
iconDirEntries
[
i
].
bHeight
*
iconDirEntries
[
i
].
bW
idth
;
best
[
slot
].
maxPixels
=
height
*
w
idth
;
best
[
slot
].
maxBits
=
iconDirEntries
[
i
].
wBitCount
;
}
}
...
...
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