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
7ccc2d25
Commit
7ccc2d25
authored
Sep 24, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Sep 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Use system metrics to determine icon sizes.
- Move invalid index from 1 to 0.
parent
e9f2eb52
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
iconcache.c
dlls/shell32/iconcache.c
+12
-5
shres.rc
dlls/shell32/shres.rc
+1
-1
No files found.
dlls/shell32/iconcache.c
View file @
7ccc2d25
...
...
@@ -205,6 +205,13 @@ BOOL SIC_Initialize(void)
{
HICON
hSm
,
hLg
;
UINT
index
;
int
cx_small
,
cy_small
;
int
cx_large
,
cy_large
;
cx_small
=
GetSystemMetrics
(
SM_CXSMICON
);
cy_small
=
GetSystemMetrics
(
SM_CYSMICON
);
cx_large
=
GetSystemMetrics
(
SM_CXICON
);
cy_large
=
GetSystemMetrics
(
SM_CYICON
);
TRACE
(
"
\n
"
);
...
...
@@ -226,13 +233,13 @@ BOOL SIC_Initialize(void)
for
(
index
=
1
;
index
<
39
;
index
++
)
{
hSm
=
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
index
),
IMAGE_ICON
,
16
,
16
,
LR_SHARED
);
hLg
=
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
index
),
IMAGE_ICON
,
32
,
32
,
LR_SHARED
);
hSm
=
(
HICON
)
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
index
),
IMAGE_ICON
,
cx_small
,
cy_small
,
LR_SHARED
);
hLg
=
(
HICON
)
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
index
),
IMAGE_ICON
,
cx_large
,
cy_large
,
LR_SHARED
);
if
(
!
hSm
)
{
hSm
=
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
0
),
IMAGE_ICON
,
16
,
16
,
LR_SHARED
);
hLg
=
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
0
),
IMAGE_ICON
,
32
,
32
,
LR_SHARED
);
hSm
=
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
1
),
IMAGE_ICON
,
cx_small
,
cy_small
,
LR_SHARED
);
hLg
=
LoadImageA
(
shell32_hInstance
,
MAKEINTRESOURCEA
(
1
),
IMAGE_ICON
,
cx_large
,
cy_large
,
LR_SHARED
);
}
SIC_IconAppend
(
swShell32Name
,
index
,
hSm
,
hLg
);
}
...
...
@@ -326,7 +333,7 @@ BOOL PidlToSicIndex (
}
if
(
INVALID_INDEX
==
*
pIndex
)
/* default icon when failed */
*
pIndex
=
1
;
*
pIndex
=
0
;
return
ret
;
...
...
dlls/shell32/shres.rc
View file @
7ccc2d25
...
...
@@ -34,7 +34,7 @@ BEGIN
END
/* BINRES document.ico */
0
ICON document.ico
1
ICON document.ico
/* {
'00 00 01 00 04 00 10 10 10 00 01 00 04 00 28 01'
'00 00 46 00 00 00 10 10 00 00 01 00 08 00 68 05'
...
...
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