diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-24 06:41:32 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-24 06:41:32 +0000 |
commit | 930fa5e62b924b66bee881070fd9619994da202d (patch) | |
tree | 37c3b9c6ddd2b98c71b08f8e104dcd04ff7341d5 /protocols/Tox/src/tox_icons.cpp | |
parent | 13b99e9e773a322b5fdd7cf4f6f6004a28472eeb (diff) |
Tox: work commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@13061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_icons.cpp')
-rw-r--r-- | protocols/Tox/src/tox_icons.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_icons.cpp b/protocols/Tox/src/tox_icons.cpp index 5600283ae0..e01c39ff97 100644 --- a/protocols/Tox/src/tox_icons.cpp +++ b/protocols/Tox/src/tox_icons.cpp @@ -34,13 +34,22 @@ void CToxProto::InitIcons() }
}
+HICON CToxProto::GetIcon(const char *name, int size)
+{
+ for (size_t i = 0; i < SIZEOF(Icons); i++)
+ if (mir_strcmpi(Icons[i].Name, name) == 0)
+ return Skin_GetIconByHandle(Icons[i].Handle, size);
+
+ return NULL;
+}
+
HANDLE CToxProto::GetIconHandle(const char *name)
{
for (size_t i = 0; i < SIZEOF(Icons); i++)
if (mir_strcmpi(Icons[i].Name, name) == 0)
return Icons[i].Handle;
- return 0;
+ return NULL;
}
HANDLE CToxProto::GetSkinIconHandle(const char *name)
|