From 4dc5eb9a543b140e0fd2414fcf5909cd7e1d5f54 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 11 Aug 2019 22:17:38 +0200 Subject: [PATCH] Use default wxPen for DrawPoint in wxGCDC Match the default wxDC implementations by using a default wxPen with width 1, wxPENSTYLE_SOLID and default join and cap values. --- src/common/dcgraph.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index e0baafa06d..e9baee8b7c 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -752,6 +752,9 @@ void wxGCDCImpl::DoDrawPoint( wxCoord x, wxCoord y ) if (!m_logicalFunctionSupported) return; + wxPen pointPen(m_pen.GetColour()); + wxDCPenChanger penChanger(*GetOwner(), pointPen); + #if defined(__WXMSW__) && wxUSE_GRAPHICS_GDIPLUS // single point path does not work with GDI+ if (m_graphicContext->GetRenderer() == wxGraphicsRenderer::GetGDIPlusRenderer())