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
e72a37e9
Commit
e72a37e9
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, size is implicit in ICNS slot; don't search for best.
parent
eb409390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+1
-5
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
e72a37e9
...
...
@@ -839,7 +839,6 @@ static HRESULT platform_write_icon(IStream *icoStream, int exeIndex, LPCWSTR ico
int
numEntries
;
struct
{
int
index
;
int
maxPixels
;
int
maxBits
;
}
best
[
ICNS_SLOTS
];
int
indexes
[
ICNS_SLOTS
];
...
...
@@ -857,7 +856,6 @@ static HRESULT platform_write_icon(IStream *icoStream, int exeIndex, LPCWSTR ico
for
(
i
=
0
;
i
<
ICNS_SLOTS
;
i
++
)
{
best
[
i
].
index
=
-
1
;
best
[
i
].
maxPixels
=
0
;
best
[
i
].
maxBits
=
0
;
}
for
(
i
=
0
;
i
<
numEntries
;
i
++
)
...
...
@@ -872,11 +870,9 @@ static HRESULT platform_write_icon(IStream *icoStream, int exeIndex, LPCWSTR ico
slot
=
size_to_slot
(
width
);
if
(
slot
<
0
)
continue
;
if
(
iconDirEntries
[
i
].
wBitCount
>=
best
[
slot
].
maxBits
&&
(
height
*
width
)
>=
best
[
slot
].
maxPixels
)
if
(
iconDirEntries
[
i
].
wBitCount
>=
best
[
slot
].
maxBits
)
{
best
[
slot
].
index
=
i
;
best
[
slot
].
maxPixels
=
height
*
width
;
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