mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Fix dialog label constraint not working
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user