From d245dc9e1f4e2d9416ff689b50d0650cafc5df50 Mon Sep 17 00:00:00 2001 From: Anton Triest Date: Fri, 27 Mar 2020 11:59:10 +0100 Subject: [PATCH] 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. --- src/msw/pen.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp index 0759f7b9c6..6ad3c57b33 100644 --- a/src/msw/pen.cpp +++ b/src/msw/pen.cpp @@ -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); }