summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Omegle/src/theme.cpp')
-rw-r--r--protocols/Omegle/src/theme.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/Omegle/src/theme.cpp b/protocols/Omegle/src/theme.cpp
index aa794eb8f1..98253cbfcd 100644
--- a/protocols/Omegle/src/theme.cpp
+++ b/protocols/Omegle/src/theme.cpp
@@ -26,11 +26,11 @@ extern OBJLIST<OmegleProto> g_Instances;
static IconItem icons[] =
{
- { "omegle", LPGEN("Omegle Icon"), IDI_OMEGLE },
+ { LPGEN("Omegle Icon"), "omegle", IDI_OMEGLE },
+ { LPGEN("Stranger is typing"), "typing_on", IDI_TYPING_ON },
+ { LPGEN("Stranger stopped typing"), "typing_off", IDI_TYPING_OFF },
};
-static HANDLE hIconLibItem[_countof(icons)];
-
void InitIcons(void)
{
Icon_Register(g_hInstance, "Protocols/Omegle", icons, _countof(icons), "Omegle");
@@ -39,9 +39,8 @@ void InitIcons(void)
HANDLE GetIconHandle(const char* name)
{
for (size_t i = 0; i < _countof(icons); i++)
- {
if (mir_strcmp(icons[i].szName, name) == 0)
- return hIconLibItem[i];
- }
+ return icons[i].hIcolib;
+
return 0;
}