diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-07 18:19:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-07 18:19:34 +0000 |
commit | e5cb033463036b182fb6e5e3eed50a14987f5300 (patch) | |
tree | c1e0c20c1fb1808f658f4aadf624a57474576eb4 /src/mir_core | |
parent | e2d81fead804c1d7dd557af5d3082ba0399a38c1 (diff) |
SKINICONDESC -> MAllStrings
git-svn-id: http://svn.miranda-ng.org/main/trunk@14054 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/icons.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mir_core/src/icons.cpp b/src/mir_core/src/icons.cpp index 806f17d775..47d6e1c904 100644 --- a/src/mir_core/src/icons.cpp +++ b/src/mir_core/src/icons.cpp @@ -31,9 +31,9 @@ MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconIte TCHAR szFile[MAX_PATH];
GetModuleFileName(hInst, szFile, MAX_PATH);
- SKINICONDESC sid = { sizeof(sid) };
- sid.ptszDefaultFile = szFile;
- sid.pszSection = (char*)szSection;
+ SKINICONDESC sid = { 0 };
+ sid.defaultFile.t = szFile;
+ sid.section.a = (char*)szSection;
sid.flags = SIDF_PATH_TCHAR;
for (unsigned i = 0; i < iCount; i++) {
@@ -45,7 +45,7 @@ MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconIte else sid.pszName = pIcons[i].szName;
sid.cx = sid.cy = pIcons[i].size;
- sid.pszDescription = pIcons[i].szDescr;
+ sid.description.a = pIcons[i].szDescr;
sid.iDefaultIndex = -pIcons[i].defIconID;
pIcons[i].hIcolib = (HANDLE)CallService("Skin2/Icons/AddIcon", hLangpack, (LPARAM)&sid);
}
@@ -56,9 +56,9 @@ MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR *szSection, IconI TCHAR szFile[MAX_PATH];
GetModuleFileName(hInst, szFile, MAX_PATH);
- SKINICONDESC sid = { sizeof(sid) };
- sid.ptszDefaultFile = szFile;
- sid.ptszSection = (TCHAR*)szSection;
+ SKINICONDESC sid = { 0 };
+ sid.defaultFile.t = szFile;
+ sid.section.t = (TCHAR*)szSection;
sid.flags = SIDF_ALL_TCHAR;
for (unsigned i = 0; i < iCount; i++) {
@@ -70,7 +70,7 @@ MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR *szSection, IconI else sid.pszName = pIcons[i].szName;
sid.cx = sid.cy = pIcons[i].size;
- sid.ptszDescription = pIcons[i].tszDescr;
+ sid.description.t = pIcons[i].tszDescr;
sid.iDefaultIndex = -pIcons[i].defIconID;
pIcons[i].hIcolib = (HANDLE)CallService("Skin2/Icons/AddIcon", hLangpack, (LPARAM)&sid);
}
|