From fbf501dd140f979bb8d332c8d8115844eada0382 Mon Sep 17 00:00:00 2001 From: wj32 Date: Thu, 18 Nov 2010 23:17:12 +0000 Subject: [PATCH] hackaround for bold text git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3845 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- 2.x/trunk/phlib/treelist.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/2.x/trunk/phlib/treelist.c b/2.x/trunk/phlib/treelist.c index c79c1135f..41dff50fb 100644 --- a/2.x/trunk/phlib/treelist.c +++ b/2.x/trunk/phlib/treelist.c @@ -1659,7 +1659,14 @@ static VOID PhpCustomDrawPrePaintSubItem( textRect.bottom = origTextRect.bottom - textVertMargin; if (font) + { + // The list view draws bold text without any clipping, somehow + // squeezing the text vertically. Here we'll just remove + // vertical clipping. + textRect.bottom += 10; + textFlags &= ~DT_VCENTER; oldFont = SelectObject(CustomDraw->nmcd.hdc, font); + } DrawText( CustomDraw->nmcd.hdc,