From ef1a349d88912a89a8dd20ca1dcb342b6dc9c2ff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 27 May 2019 18:45:43 +0300 Subject: fixes #1963 (Remove Free for Chat, On the Phone and Out to Lunch statuses completely) --- plugins/wbOSD/src/options.cpp | 2 +- plugins/wbOSD/src/stdafx.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/wbOSD/src') diff --git a/plugins/wbOSD/src/options.cpp b/plugins/wbOSD/src/options.cpp index 9136649854..3b2e777958 100644 --- a/plugins/wbOSD/src/options.cpp +++ b/plugins/wbOSD/src/options.cpp @@ -21,7 +21,7 @@ void FillCheckBoxTree(HWND hwndTree, DWORD style) tvis.hParent = nullptr; tvis.hInsertAfter = TVI_LAST; tvis.item.mask = TVIF_PARAM | TVIF_TEXT | TVIF_STATE; - for (WORD status = ID_STATUS_OFFLINE; status <= ID_STATUS_OUTTOLUNCH; status++) { + for (WORD status = ID_STATUS_OFFLINE; status <= ID_STATUS_MAX; status++) { tvis.item.lParam = status - ID_STATUS_OFFLINE; tvis.item.pszText = Clist_GetStatusModeDescription(status, 0); tvis.item.stateMask = TVIS_STATEIMAGEMASK; diff --git a/plugins/wbOSD/src/stdafx.h b/plugins/wbOSD/src/stdafx.h index 2d903930f9..0f029ab5f0 100644 --- a/plugins/wbOSD/src/stdafx.h +++ b/plugins/wbOSD/src/stdafx.h @@ -85,9 +85,6 @@ int HookedNewEvent(WPARAM wParam, LPARAM lParam); // Announcing messages from outside INT_PTR OSDAnnounce(WPARAM wParam, LPARAM lParam); -#define ID_STATUS_MIN ID_STATUS_OFFLINE -#define ID_STATUS_MAX ID_STATUS_OUTTOLUNCH - typedef struct _plgsettings { int align, salign, altShadow, showShadow, a_user, distance, onlyfromlist, showmystatus; int showMsgWindow; -- cgit v1.2.3