[PATCH 1/3] comctl32/button: Remove useless calculation when drawing themed group boxes.

Zhiyi Zhang zzhang at codeweavers.com
Thu Dec 9 02:12:59 CST 2021


Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 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);
-- 
2.32.0




More information about the wine-devel mailing list