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

Alexandre Julliard julliard at winehq.org
Thu Dec 9 15:34:27 CST 2021


Module: wine
Branch: master
Commit: 743045b279bfe8f82de5cd883e666961feb78b07
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=743045b279bfe8f82de5cd883e666961feb78b07

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Thu Dec  9 16:12:59 2021 +0800

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

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/button.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c
index d537629fa35..9e0ed8a8987 100644
--- a/dlls/comctl32/button.c
+++ b/dlls/comctl32/button.c
@@ -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);




More information about the wine-cvs mailing list