summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/m_icolib.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp
index 22da2cbc43..e3bbe36b54 100644
--- a/plugins/MirLua/src/m_icolib.cpp
+++ b/plugins/MirLua/src/m_icolib.cpp
@@ -16,7 +16,7 @@ static int lua_AddIcon(lua_State *L)
si.defaultFile.t = filePath;
si.iDefaultIndex = -IDI_ICON;
- HANDLE res = ::Skin_AddIcon(&si);
+ HANDLE res = ::IcoLib_AddIcon(&si);
lua_pushlightuserdata(L, res);
return 1;
@@ -27,7 +27,7 @@ static int lua_GetIcon(lua_State *L)
char iconName[MAX_PATH];
mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, luaL_checkstring(L, 1));
- HANDLE res = ::Skin_GetIconHandle(iconName);
+ HANDLE res = ::IcoLib_GetIconHandle(iconName);
lua_pushlightuserdata(L, res);
return 1;
@@ -38,12 +38,12 @@ static int lua_RemoveIcon(lua_State *L)
INT_PTR res = 0;
if (lua_isuserdata(L, 1))
- res = ::CallService(MS_SKIN2_REMOVEICON, (WPARAM)lua_touserdata(L, 1), 0);
+ ::IcoLib_RemoveIconByHandle(lua_touserdata(L, 1));
else if (lua_isstring(L, 1))
{
char iconName[MAX_PATH];
mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, lua_tostring(L, 1));
- res = ::CallService(MS_SKIN2_REMOVEICON, 0, (LPARAM)iconName);
+ ::IcoLib_RemoveIcon(iconName);
}
else
res = 1;