From f0f8de0966fab4b8c8d2ff3dbec0503943d91184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Mon, 20 Oct 2003 17:57:42 +0000 Subject: [PATCH] Set tmMaxCharWidth svn path=/trunk/; revision=6388 --- reactos/subsys/win32k/objects/text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/objects/text.c b/reactos/subsys/win32k/objects/text.c index d71ac29407f..c681001176b 100644 --- a/reactos/subsys/win32k/objects/text.c +++ b/reactos/subsys/win32k/objects/text.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: text.c,v 1.52 2003/09/24 16:01:32 weiden Exp $ */ +/* $Id: text.c,v 1.53 2003/10/20 17:57:42 gvg Exp $ */ #undef WIN32_LEAN_AND_MEAN @@ -935,6 +935,7 @@ NtGdiGetTextMetrics(HDC hDC, SafeTm.tmAscent = (Face->size->metrics.ascender + 32) / 64; // units above baseline SafeTm.tmDescent = (- Face->size->metrics.descender + 32) / 64; // units below baseline SafeTm.tmHeight = SafeTm.tmAscent + SafeTm.tmDescent; + SafeTm.tmMaxCharWidth = (Face->size->metrics.max_advance + 32) / 64; Status = MmCopyToCaller(tm, &SafeTm, sizeof(TEXTMETRICW)); } }