Fix incorrect subtitle space in Windows (#216)

The font space between regular and italics is incorrect, simply because the pen object was not passed to the GetBounds object.
This commit is contained in:
jcdr428 2020-02-28 19:21:10 +02:00 committed by GitHub
parent b4c2cabf88
commit 5bd9570920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ void TextSubtitlesRenderWin32::getTextSize(const std::wstring& text, SIZE* mSize
RectF rect;
Pen pen(Color(0x30, 0, 0, 0), m_font.m_borderWidth * 2);
pen.SetLineJoin(LineJoinRound);
path.GetBounds(&rect, 0, 0);
path.GetBounds(&rect, 0, &pen);
mSize->cx = rect.Width;
mSize->cy = lineSpacingPixel;
#endif