diff options
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r-- | plugins/MirOTR/MirOTR/src/icons.cpp | 15 | ||||
-rw-r--r-- | plugins/MirOTR/MirOTR/src/mirotrmenu.cpp | 2 |
2 files changed, 10 insertions, 7 deletions
diff --git a/plugins/MirOTR/MirOTR/src/icons.cpp b/plugins/MirOTR/MirOTR/src/icons.cpp index c9dd1a10db..181c57e492 100644 --- a/plugins/MirOTR/MirOTR/src/icons.cpp +++ b/plugins/MirOTR/MirOTR/src/icons.cpp @@ -47,16 +47,19 @@ void DeinitIcons() { }
HICON LoadIcon(const char* name, int big) {
- return ( HICON )CallService( MS_SKIN2_GETICON, big, (LPARAM)name );
+ return Skin_GetIcon(name, big);
}
HANDLE GetIconHandle(const char* name) {
- return ( HANDLE )CallService( MS_SKIN2_GETICONHANDLE, 0, (LPARAM)name );
+ return Skin_GetIconHandle(name);
}
-void ReleaseIcon(const char* name, int big) {
- CallService( big ? MS_SKIN2_RELEASEICONBIG : MS_SKIN2_RELEASEICON, 0, (LPARAM)name );
+void ReleaseIcon(const char* name, int big)
+{
+ Skin_ReleaseIcon(name, big);
}
-void ReleaseIcon(HICON handle, int big) {
- CallService( big ? MS_SKIN2_RELEASEICONBIG : MS_SKIN2_RELEASEICON, (WPARAM)handle, 0 );
+
+void ReleaseIcon(HICON handle, int big)
+{
+ Skin_ReleaseIcon(handle);
}
diff --git a/plugins/MirOTR/MirOTR/src/mirotrmenu.cpp b/plugins/MirOTR/MirOTR/src/mirotrmenu.cpp index 07a874c425..8d6b8512f2 100644 --- a/plugins/MirOTR/MirOTR/src/mirotrmenu.cpp +++ b/plugins/MirOTR/MirOTR/src/mirotrmenu.cpp @@ -220,7 +220,7 @@ void InitMirOTRMenu(void) tmp.CheckService="MirOTRMenuCheckService";
tmp.ExecService="MirOTRMenuExecService";
tmp.name="MirOTRMenu";
- hMirOTRMenuObject=(HANDLE)CallService(MO_CREATENEWMENUOBJECT,(WPARAM)0,(LPARAM)&tmp);
+ hMirOTRMenuObject=(HANDLE)CallService(MO_CREATENEWMENUOBJECT,0,(LPARAM)&tmp);
}
OptParam params;
|