summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/mir_icolib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/mir_icolib.cpp')
-rw-r--r--plugins/UserInfoEx/src/mir_icolib.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/mir_icolib.cpp b/plugins/UserInfoEx/src/mir_icolib.cpp
index 448e67b7ec..587da1a03e 100644
--- a/plugins/UserInfoEx/src/mir_icolib.cpp
+++ b/plugins/UserInfoEx/src/mir_icolib.cpp
@@ -314,20 +314,24 @@ HICON IcoLib_RegisterIcon(LPSTR szIconID, LPSTR szDescription, LPSTR szSection,
*
* @return nothing
**/
-static IconItem main = { LPGEN("Main"), ICO_COMMON_MAIN, IDI_MAIN };
+static IconItem common[] =
+{
+ { LPGEN("Main"), ICO_COMMON_MAIN, IDI_MAIN },
+ { LPGEN("Default"), ICO_COMMON_DEFAULT, IDI_DEFAULT }
+};
void IcoLib_LoadModule()
{
- Icon_Register(ghInst, SECT_COMMON, &main, 1);
+ Icon_Register(ghInst, SECT_COMMON, common, 2);
LPTSTR szDefaultFile = IcoLib_GetDefaultIconFileName();
IcoLib_CheckIconPackVersion(szDefaultFile);
// load default icon if required
- ghDefIcon = (HICON)LoadImage(ghInst, MAKEINTRESOURCE(IDI_DEFAULT), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0);
+ ghDefIcon = (HICON)IcoLib_GetIcon(ICO_COMMON_DEFAULT, false);
for (int i = 0; i < _countof(icoDesc); i++)
IcoLib_RegisterIconHandleEx(
- icoDesc[i].pszName, icoDesc[i].pszDesc, icoDesc[i].pszSection,
+ icoDesc[i].pszName, icoDesc[i].pszDesc, icoDesc[i].pszSection,
szDefaultFile, icoDesc[i].idResource, icoDesc[i].size, ghDefIcon);
}