Zhiyi Zhang : comctl32/button: Use BS_PUSHLIKE instead of WS_EX_RIGHT in BUTTON_PositionRect().
Alexandre Julliard
julliard at winehq.org
Tue Nov 2 17:27:44 CDT 2021
Module: wine
Branch: master
Commit: 5e16493f71c70c4dc54db8de0900e42fd00417f7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5e16493f71c70c4dc54db8de0900e42fd00417f7
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Tue Nov 2 15:17:51 2021 +0800
comctl32/button: Use BS_PUSHLIKE instead of WS_EX_RIGHT in BUTTON_PositionRect().
BS_PUSHLIKE and WS_EX_RIGHT have the same value and it was a typo to use WS_EX_RIGHT.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c
index b3331e179cd..fbe060513d2 100644
--- a/dlls/comctl32/button.c
+++ b/dlls/comctl32/button.c
@@ -1122,7 +1122,7 @@ static void BUTTON_PositionRect(LONG style, const RECT *outerRect, RECT *innerRe
INT width = innerRect->right - innerRect->left;
INT height = innerRect->bottom - innerRect->top;
- if ((style & WS_EX_RIGHT) && !(style & BS_CENTER)) style |= BS_CENTER;
+ if ((style & BS_PUSHLIKE) && !(style & BS_CENTER)) style |= BS_CENTER;
if (!(style & BS_CENTER))
{
More information about the wine-cvs
mailing list