Fix strike-through support in wxFont with GDI+
Pass down the strike-through flag to GDI+ (see #9907). Closes #17372.
This commit is contained in:
parent
d7d5bcaae6
commit
ccd361c98f
@ -209,6 +209,7 @@ wxMSW:
|
||||
- Fix crash in wxD2DContext when using non-MSVC compiler (iwbnwif).
|
||||
- Notify shell about the changes done by wxMimeTypesManager (Maarten Bent).
|
||||
- Fix wxPrintf() and friends when using MinGW with ANSI stdio option.
|
||||
- Fix strike-through support in wxFont with GDI+ (David Vanderson).
|
||||
|
||||
wxOSX/Cocoa:
|
||||
|
||||
|
@ -962,6 +962,8 @@ wxGDIPlusFontData::wxGDIPlusFontData( wxGraphicsRenderer* renderer,
|
||||
style |= FontStyleItalic;
|
||||
if ( font.GetUnderlined() )
|
||||
style |= FontStyleUnderline;
|
||||
if ( font.GetStrikethrough() )
|
||||
style |= FontStyleStrikeout;
|
||||
if ( font.GetWeight() == wxFONTWEIGHT_BOLD )
|
||||
style |= FontStyleBold;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user