From 21f5ff130369c73932e3e5f996c8fd30a57aaac4 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 10 Aug 2013 12:03:40 +0300 Subject: [PATCH] Gfx: Fix incorrect text height/width with D2D in some cases due to typo --- Common/Gfx/TextFormatD2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Gfx/TextFormatD2D.cpp b/Common/Gfx/TextFormatD2D.cpp index 3f584e2b..1f367a70 100644 --- a/Common/Gfx/TextFormatD2D.cpp +++ b/Common/Gfx/TextFormatD2D.cpp @@ -56,7 +56,7 @@ void TextFormatD2D::CreateLayout(const WCHAR* str, UINT strLen, float maxW, floa if (maxH != m_TextLayout->GetMaxHeight()) { - m_TextLayout->SetMaxWidth(maxH); + m_TextLayout->SetMaxHeight(maxH); } } else