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:
parent
b4c2cabf88
commit
5bd9570920
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user