Merge branch 'mswdc-draw-point-checkbox' of https://github.com/MaartenBent/wxWidgets
Draw the same shape in wxDC::DrawCheckMark() under all platforms and provide wxRenderer::DrawCheckMark() for drawing the platform-specific shape. Also fix wxGCDC::DrawPoint() to use the default one point wide pen. See https://github.com/wxWidgets/wxWidgets/pull/1471
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user