diff options
Diffstat (limited to 'src/modules/button/button.cpp')
-rw-r--r-- | src/modules/button/button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index 2a3aa8a934..0df5c21806 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -564,7 +564,7 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR if (bct->stateId != PBS_DISABLED) { // don't change states if disabled
if (bct->stateId == PBS_PRESSED)
showClick = 1;
- bct->stateId = (msg == WM_LBUTTONUP) ? PBS_HOT : PBS_NORMAL;
+ bct->stateId = PBS_HOT;
InvalidateRect(bct->hwnd, NULL, TRUE);
}
if (showClick && !bct->bSendOnDown) // Tell your daddy you got clicked.
|