mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
YAY for bug fixes!
svn path=/trunk/; revision=4292
This commit is contained in:
parent
77ca8d96bd
commit
b1839c1917
1 changed files with 4 additions and 4 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -345,12 +345,12 @@ static void UserDrawCaptionNC( HDC hDC, RECT *rect, HWND hWnd,
|
||||||
else
|
else
|
||||||
hFont = CreateFontIndirectW(&nclm.lfCaptionFont);
|
hFont = CreateFontIndirectW(&nclm.lfCaptionFont);
|
||||||
hOldFont = SelectObject(hDC, hFont);
|
hOldFont = SelectObject(hDC, hFont);
|
||||||
|
|
||||||
SetTextColor(hDC, SysColours[ active ? COLOR_CAPTIONTEXT : COLOR_INACTIVECAPTIONTEXT]);
|
SetTextColor(hDC, SysColours[ active ? COLOR_CAPTIONTEXT : COLOR_INACTIVECAPTIONTEXT]);
|
||||||
SetBkMode( hDC, TRANSPARENT );
|
SetBkMode( hDC, TRANSPARENT );
|
||||||
|
|
||||||
/*FIXME: Need verticle centering code and other fixups */
|
/*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));
|
DeleteObject (SelectObject (hDC, hOldFont));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue