Create strike-through wxGraphicsFont objects in wxOSX

Honour wxFONTFLAG_UNDERLINED in wxGraphicsFont::CreateFont() overload taking
flags.

See https://github.com/wxWidgets/wxWidgets/pull/187
This commit is contained in:
Daniel Kulp
2016-02-22 22:51:59 +01:00
committed by Vadim Zeitlin
parent ed6dc2e4ed
commit 53a5806372
2 changed files with 4 additions and 1 deletions

View File

@@ -2875,6 +2875,9 @@ wxMacCoreGraphicsRenderer::CreateFont(double sizeInPixels,
(flags & wxFONTFLAG_UNDERLINED) != 0,
facename);
if ( flags & wxFONTFLAG_STRIKETHROUGH )
font.MakeStrikethrough();
wxGraphicsFont f;
f.SetRefData(new wxMacCoreGraphicsFontData(this, font, col));
return f;