diff options
| author | George Hazan <ghazan@miranda.im> | 2017-02-01 17:52:22 +0300 | 
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2017-02-01 17:52:22 +0300 | 
| commit | 2eb26dc2acbcd30ae9f3673dae89ba647f594564 (patch) | |
| tree | 3e79dccb35ce2a778f8e889b14858cddd54d851c /plugins/LotusNotify/src | |
| parent | a394c200ee2664b177d376259ab26b78bb854c19 (diff) | |
PLI_ONLINE & PLI_OFFLINE - unused constants removed
Diffstat (limited to 'plugins/LotusNotify/src')
| -rw-r--r-- | plugins/LotusNotify/src/LotusNotify.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/LotusNotify/src/LotusNotify.cpp b/plugins/LotusNotify/src/LotusNotify.cpp index 9c5d016cde..90a1d3fe59 100644 --- a/plugins/LotusNotify/src/LotusNotify.cpp +++ b/plugins/LotusNotify/src/LotusNotify.cpp @@ -1504,12 +1504,13 @@ INT_PTR TMLoadIcon(WPARAM wParam, LPARAM)  	UINT id;
  	switch (wParam & 0xFFFF) {
 -	case PLI_ONLINE:
 -	case PLI_PROTOCOL: id = IDI_ICON1; break; // IDI_TM is the main icon for the protocol
 -	case PLI_OFFLINE: id = IDI_ICON2; break;
 -	default: return 0;
 +	case PLI_PROTOCOL:
 +		id = IDI_ICON1;
 +		break; // IDI_TM is the main icon for the protocol
 +	default:
 +		return 0;
  	}
 -	return (INT_PTR)LoadImage(hInst, MAKEINTRESOURCE(id), IMAGE_ICON, GetSystemMetrics(wParam&PLIF_SMALL ? SM_CXSMICON : SM_CXICON), GetSystemMetrics(wParam&PLIF_SMALL ? SM_CYSMICON : SM_CYICON), 0);
 +	return (INT_PTR)LoadImage(hInst, MAKEINTRESOURCE(id), IMAGE_ICON, GetSystemMetrics(wParam & PLIF_SMALL ? SM_CXSMICON : SM_CXICON), GetSystemMetrics(wParam & PLIF_SMALL ? SM_CYSMICON : SM_CYICON), 0);
  }
  | 
