Module: wine Branch: master Commit: 79a9010ee8580e19dba2780ce455d6645f712cad URL: http://source.winehq.org/git/wine.git/?a=commit;h=79a9010ee8580e19dba2780ce4...
Author: Michael Stefaniuc mstefani@redhat.de Date: Sat Jul 9 13:52:20 2016 +0200
ieframe: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ieframe/iexplore.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/ieframe/iexplore.c b/dlls/ieframe/iexplore.c index 5b58aa2..11b79ad 100644 --- a/dlls/ieframe/iexplore.c +++ b/dlls/ieframe/iexplore.c @@ -73,8 +73,7 @@ static void adjust_ie_docobj_rect(HWND frame, RECT* rc) HWND hwndStatus = GetDlgItem(frame, IDC_BROWSE_STATUSBAR); INT barHeight = SendMessageW(hwndRebar, RB_GETBARHEIGHT, 0, 0);
- rc->top += barHeight; - rc->bottom -= barHeight; + InflateRect(rc, 0, -barHeight);
if(IsWindowVisible(hwndStatus)) {