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
7db6885d
Commit
7db6885d
authored
Mar 21, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add support for SHIL_SYSSMALL list.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
479dc1d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
iconcache.c
dlls/shell32/iconcache.c
+3
-5
No files found.
dlls/shell32/iconcache.c
View file @
7db6885d
...
...
@@ -61,7 +61,7 @@ typedef struct
static
HDPA
sic_hdpa
;
static
INIT_ONCE
sic_init_once
=
INIT_ONCE_STATIC_INIT
;
static
HIMAGELIST
shell_imagelists
[
SHIL_
EXTRALARGE
+
1
];
static
HIMAGELIST
shell_imagelists
[
SHIL_
SYSSMALL
+
1
];
static
CRITICAL_SECTION
SHELL32_SicCS
;
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
...
...
@@ -452,6 +452,8 @@ static BOOL WINAPI SIC_Initialize( INIT_ONCE *once, void *param, void **context
sizes
[
SHIL_EXTRALARGE
].
cx
=
(
GetSystemMetrics
(
SM_CXICON
)
*
3
)
/
2
;
sizes
[
SHIL_EXTRALARGE
].
cy
=
(
GetSystemMetrics
(
SM_CYICON
)
*
3
)
/
2
;
sizes
[
SHIL_SYSSMALL
].
cx
=
GetSystemMetrics
(
SM_CXSMICON
);
sizes
[
SHIL_SYSSMALL
].
cy
=
GetSystemMetrics
(
SM_CYSMICON
);
TRACE
(
"large %dx%d small %dx%d
\n
"
,
sizes
[
SHIL_LARGE
].
cx
,
sizes
[
SHIL_LARGE
].
cy
,
sizes
[
SHIL_SMALL
].
cx
,
sizes
[
SHIL_SMALL
].
cy
);
...
...
@@ -1044,9 +1046,5 @@ HRESULT WINAPI SHGetImageList(int iImageList, REFIID riid, void **ppv)
}
InitOnceExecuteOnce
(
&
sic_init_once
,
SIC_Initialize
,
NULL
,
NULL
);
if
(
iImageList
==
SHIL_SYSSMALL
)
iImageList
=
SHIL_SMALL
;
return
HIMAGELIST_QueryInterface
(
shell_imagelists
[
iImageList
],
riid
,
ppv
);
}
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