From 75b1ff75c42644eb36552762652e4b0c9ff071bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Nov 2012 14:11:01 +0000 Subject: final switch to the typed icolib api git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/icolib.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/Yahoo/src') diff --git a/protocols/Yahoo/src/icolib.cpp b/protocols/Yahoo/src/icolib.cpp index 09ad4853b0..40c7cb9421 100644 --- a/protocols/Yahoo/src/icolib.cpp +++ b/protocols/Yahoo/src/icolib.cpp @@ -63,10 +63,8 @@ void CYahooProto::IconsInit( void ) HICON CYahooProto::LoadIconEx( const char* name, bool big ) { char szSettingName[100]; - - mir_snprintf( szSettingName, sizeof( szSettingName ), "YAHOO_%s", name ); - - return ( HICON )CallService( MS_SKIN2_GETICON, big, (LPARAM)szSettingName ); + mir_snprintf(szSettingName, sizeof(szSettingName), "YAHOO_%s", name); + return Skin_GetIcon(szSettingName, big); } HANDLE CYahooProto::GetIconHandle(int iconId) @@ -82,5 +80,5 @@ void CYahooProto::ReleaseIconEx(const char* name, bool big) { char szSettingName[100]; mir_snprintf(szSettingName, sizeof(szSettingName), "YAHOO_%s", name); - CallService(big ? MS_SKIN2_RELEASEICONBIG : MS_SKIN2_RELEASEICON, 0, (LPARAM)szSettingName); + Skin_ReleaseIcon(szSettingName, big); } -- cgit v1.2.3