From 5567250e14fa694730aecefbfdfe2a0203677a2b Mon Sep 17 00:00:00 2001 From: elasota Date: Thu, 27 Feb 2020 01:22:38 -0500 Subject: [PATCH] Fix dialog label constraint not working --- PortabilityLayer/PLQDraw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PortabilityLayer/PLQDraw.cpp b/PortabilityLayer/PLQDraw.cpp index b6650a4..2738bbc 100644 --- a/PortabilityLayer/PLQDraw.cpp +++ b/PortabilityLayer/PLQDraw.cpp @@ -464,7 +464,7 @@ void DrawSurface::DrawStringWrap(const Point &point, const Rect &constrainRect, PixMap *pixMap = *port->GetPixMap(); - const Rect limitRect = pixMap->m_rect.Intersect(constrainRect);; + const Rect limitRect = pixMap->m_rect.Intersect(constrainRect); const Rect areaRect = constrainRect; if (!limitRect.IsValid() || !areaRect.IsValid()) @@ -547,7 +547,7 @@ void DrawSurface::DrawStringWrap(const Point &point, const Rect &constrainRect, { const uint8_t character = chars[currentStartChar + ci]; - DrawGlyph(qdState, pixMap, pixMap->m_rect, penPos, rfont, character, m_cachedAATable, m_cachedAAColor); + DrawGlyph(qdState, pixMap, limitRect, penPos, rfont, character, m_cachedAATable, m_cachedAAColor); } currentStartChar += committedLength;