From 65bcbfe440cf50e8a5df9b708da553fbda429d15 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2012 12:24:51 +0000 Subject: - improved bug compatibility with Clist Modern; - standard variable names; - useless code & data removed git-svn-id: http://svn.miranda-ng.org/main/trunk@902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/toolbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TopToolBar') diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp index 156f378937..a40804efd8 100644 --- a/plugins/TopToolBar/toolbar.cpp +++ b/plugins/TopToolBar/toolbar.cpp @@ -375,8 +375,8 @@ INT_PTR TTBSetState(WPARAM wParam, LPARAM lParam) if (b == NULL) return -1; - b->bPushed = (lParam&TTBST_PUSHED)?TRUE:FALSE; - b->bPushed = (lParam&TTBST_RELEASED)?FALSE:TRUE; + b->bPushed = (lParam & TTBST_PUSHED)?TRUE:FALSE; + b->bPushed = (lParam & TTBST_RELEASED)?FALSE:TRUE; b->SetBitmap(); return 0; } @@ -455,7 +455,7 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam) int retval; mir_cslock lck(csButtonsHook); - TopButtonInt* b = idtopos(wParam); + TopButtonInt* b = idtopos(HIWORD(wParam)); if (b == NULL) return -1; -- cgit v1.2.3