From 1f74c0a0d16f68d2759779199dd0ad7b74d604bb Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 1 Jul 2016 10:40:37 +0200 Subject: [PATCH] comctl32: Use InflateRect() instead of open coding it. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- 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 fb999cea326..d228c07319a 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 {