From b1839c1917729b907a279ae94da76bf710e11d1b Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Wed, 12 Mar 2003 06:32:44 +0000 Subject: [PATCH] YAY for bug fixes! svn path=/trunk/; revision=4292 --- reactos/lib/user32/windows/defwnd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index f142a4483b2..12a4ad90a42 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -1,4 +1,4 @@ -/* $Id: defwnd.c,v 1.31 2003/03/12 06:02:59 rcampbell Exp $ +/* $Id: defwnd.c,v 1.32 2003/03/12 06:32:44 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -319,7 +319,7 @@ static void UserDrawCaptionNC( HDC hDC, RECT *rect, HWND hWnd, { RECT r = *rect; char buffer[256]; - + /* Implement and Use DrawCaption() */ SelectObject( hDC, GetSysColorBrush(active ? COLOR_ACTIVECAPTION : COLOR_INACTIVECAPTION) ); PatBlt(hDC,rect->left + 3, rect->top + 3, rect->right - 6, rect->bottom - 1, PATCOPY ); @@ -345,12 +345,12 @@ static void UserDrawCaptionNC( HDC hDC, RECT *rect, HWND hWnd, else hFont = CreateFontIndirectW(&nclm.lfCaptionFont); hOldFont = SelectObject(hDC, hFont); - SetTextColor(hDC, SysColours[ active ? COLOR_CAPTIONTEXT : COLOR_INACTIVECAPTIONTEXT]); SetBkMode( hDC, TRANSPARENT ); /*FIXME: Need verticle centering code and other fixups */ - TextOutA(hDC, r.left, r.top+5, buffer, strlen(buffer)); + TextOutA(hDC, r.left, (r.top / 2) + (((int) nclm.lfCaptionFont.lfHeight) / 2), buffer, strlen(buffer)); + //TextOutA(hDC, r.left, (r.top / 2) + (6), buffer, strlen(buffer)); DeleteObject (SelectObject (hDC, hOldFont)); } }