comctl32/button: Remove useless calculation when drawing themed group boxes.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-12-09 16:12:59 +08:00 committed by Alexandre Julliard
parent d112d746c7
commit 743045b279

View file

@ -2922,9 +2922,6 @@ static void GB_ThemedPaint(HTHEME theme, const BUTTON_INFO *infoPtr, HDC hDC, in
if (dtFlags != (UINT)-1)
{
contentRect.left--;
contentRect.right++;
contentRect.bottom++;
if (textRegion)
{
SelectClipRgn(hDC, textRegion);