Commit 5e16493f authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

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: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ff5f45f4
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment