Fix drawing of dotted lines with wxDC in wxMSW

Use ::ExtCreatePen() for creating pens for such lines, as it results in
much better appearance for them than ::CreatePen(), which draws dashed,
and not dotted, lines in this case.

See #7097.
This commit is contained in:
Anton Triest 2020-03-27 11:59:10 +01:00 committed by Vadim Zeitlin
parent bb489418b0
commit d245dc9e1f

View File

@ -284,9 +284,7 @@ bool wxPenRefData::Alloc()
// CreatePen()
if ( m_join == wxJOIN_ROUND &&
m_cap == wxCAP_ROUND &&
m_style != wxPENSTYLE_USER_DASH &&
m_style != wxPENSTYLE_STIPPLE &&
(m_width <= 1 || m_style == wxPENSTYLE_SOLID) )
m_style == wxPENSTYLE_SOLID )
{
m_hPen = ::CreatePen(ConvertPenStyle(m_style), m_width, col);
}