From 9d9f3772f69b53bc2321fd84425fe29cf50277a6 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 26 Jan 2004 09:32:17 +0000 Subject: [PATCH] fixed close button svn path=/trunk/; revision=7879 --- reactos/lib/user32/windows/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/draw.c b/reactos/lib/user32/windows/draw.c index efe5583535d..13234053ed1 100644 --- a/reactos/lib/user32/windows/draw.c +++ b/reactos/lib/user32/windows/draw.c @@ -922,8 +922,8 @@ static BOOL UITOOLS95_DrawFrameCaption(HDC dc, LPRECT r, UINT uFlags) */ POINT start, oldPos; - INT width = myr.right - myr.left - 5; - INT height = myr.bottom - myr.top - 6; + INT width = myr.right - (++myr.left) - 5; + INT height = (--myr.bottom) - myr.top - 6; INT numLines = (width / 6) + 1; hpsave = (HPEN)SelectObject(dc, GetSysColorPen(colorIdx));