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:
parent
bb489418b0
commit
d245dc9e1f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user