From 6ea772c9cd8f281478f3a521148c8ea50863fc74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 30 Apr 2025 12:23:43 +0300 Subject: for #4956 - basic EmLAN icon --- protocols/EmLanProto/res/amdproto.rc | 1 + protocols/EmLanProto/res/icon_main.ico | Bin 0 -> 5430 bytes protocols/EmLanProto/src/amdproto.cpp | 2 +- protocols/EmLanProto/src/resource.h | 3 ++- 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 protocols/EmLanProto/res/icon_main.ico (limited to 'protocols') diff --git a/protocols/EmLanProto/res/amdproto.rc b/protocols/EmLanProto/res/amdproto.rc index 4ef095178a..97c3b4715d 100644 --- a/protocols/EmLanProto/res/amdproto.rc +++ b/protocols/EmLanProto/res/amdproto.rc @@ -28,6 +28,7 @@ LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. +IDI_ICON_MAIN ICON "icon_main.ico" IDI_ICON_ONLINE ICON "icon_onl.ico" IDI_ICON_OFFLINE ICON "icon_off.ico" diff --git a/protocols/EmLanProto/res/icon_main.ico b/protocols/EmLanProto/res/icon_main.ico new file mode 100644 index 0000000000..afb4190081 Binary files /dev/null and b/protocols/EmLanProto/res/icon_main.ico differ diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 04e7197645..241f83c6fd 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -81,7 +81,7 @@ static INT_PTR __cdecl EMPLoadIcon(WPARAM wParam, LPARAM) if ((wParam & 0xFFFF) != PLI_PROTOCOL) return 0; - return (INT_PTR)LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_ICON_ONLINE)); + return (INT_PTR)LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_ICON_MAIN)); } static INT_PTR __cdecl EMPGetStatus(WPARAM, LPARAM) diff --git a/protocols/EmLanProto/src/resource.h b/protocols/EmLanProto/src/resource.h index 472138e5f5..f57809f5fc 100644 --- a/protocols/EmLanProto/src/resource.h +++ b/protocols/EmLanProto/src/resource.h @@ -3,7 +3,8 @@ // Used by amdproto.rc // #define IDI_ICON_ONLINE 101 -#define IDI_ICON_OFFLINE 103 +#define IDI_ICON_OFFLINE 102 +#define IDI_ICON_MAIN 103 #define IDD_EMP_FORM_OPT 104 #define IDC_LIST_IP 1001 #define IDC_RADIO_USECOMPNAME 1004 -- cgit v1.2.3