diff options
Diffstat (limited to 'plugins/MobileState')
-rw-r--r-- | plugins/MobileState/src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index eb52dbba7f..ebb2f68ea1 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -24,7 +24,10 @@ CMPlugin g_plugin; HANDLE hExtraIcon = nullptr;
-static IconItem icon = { LPGEN("Mobile State"), "mobile_icon", IDI_MOBILE };
+static IconItem iconList[] =
+{
+ { LPGEN("Mobile State"), "mobile_icon", IDI_MOBILE }
+};
/////////////////////////////////////////////////////////////////////////////////////////
@@ -112,7 +115,7 @@ extern "C" int __declspec(dllexport) Load(void) HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, ExtraIconsApply);
// IcoLib support
- Icon_Register(g_plugin.getInst(), "Mobile State", &icon, 1);
+ g_plugin.registerIcon("Mobile State", iconList);
// Extra icons
hExtraIcon = ExtraIcon_RegisterIcolib("mobilestate", LPGEN("Mobile State"), "mobile_icon");
|