diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-11 12:24:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-11 12:24:51 +0000 |
commit | 65bcbfe440cf50e8a5df9b708da553fbda429d15 (patch) | |
tree | 5b9ae699ee89598307296aacce513a814d8e31f7 /plugins/TopToolBar | |
parent | e101f83e1e4ba4a9d473a9bc74ca88c9a8e73f36 (diff) |
- 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
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r-- | plugins/TopToolBar/toolbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
|