From cd35729a1755ed01dead84a2ba01ddfbf5452453 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Sun, 30 Jun 2013 00:15:36 -0600 Subject: [PATCH] Fixed typo in 32fc794 --- Common/Gfx/CanvasD2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Gfx/CanvasD2D.cpp b/Common/Gfx/CanvasD2D.cpp index 10eaf7c3..228b835b 100644 --- a/Common/Gfx/CanvasD2D.cpp +++ b/Common/Gfx/CanvasD2D.cpp @@ -358,7 +358,7 @@ bool CanvasD2D::MeasureTextLinesW(const WCHAR* str, UINT strLen, const TextForma { DWRITE_TEXT_METRICS metrics; textLayout->GetMetrics(&metrics); - rect.Width = metrics.width + 5.0f; + rect.Width = metrics.widthIncludingTrailingWhitespace + 5.0f; rect.Height = metrics.height + 1.0f; // 1.0f to get same result as GDI+. lines = metrics.lineCount; return true;