Michael Stefaniuc : comctl32: Use InflateRect() instead of open coding it.

Alexandre Julliard julliard at winehq.org
Mon Jul 4 09:54:40 CDT 2016


Module: wine
Branch: master
Commit: 1f74c0a0d16f68d2759779199dd0ad7b74d604bb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f74c0a0d16f68d2759779199dd0ad7b74d604bb

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jul  1 10:40:37 2016 +0200

comctl32: Use InflateRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tab.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index fb999ce..d228c07 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1609,12 +1609,7 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
 	}
       }
       else
-      {
-	drawRect->left   += 2;
-	drawRect->top    += 2;
-	drawRect->right  -= 2;
-	drawRect->bottom -= 2;
-      }
+        InflateRect(drawRect, -2, -2);
     }
     else
     {




More information about the wine-cvs mailing list