From 5e420341132325a2ca10207304ac54a9dc80a855 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 2 May 2002 16:03:14 +0000 Subject: [PATCH] corrected DoDrawPoint git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dc.cpp | 7 +++---- src/mac/dc.cpp | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index 0b9ac3ab1e..fcd86ce283 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -873,12 +873,11 @@ void wxDC::DoDrawPoint( wxCoord x, wxCoord y ) if (m_pen.GetStyle() != wxTRANSPARENT) { - MacInstallPen() ; wxCoord xx1 = XLOG2DEVMAC(x); wxCoord yy1 = YLOG2DEVMAC(y); - - ::MoveTo(xx1,yy1); - ::LineTo(xx1+1, yy1+1); + RGBColor pencolor = MAC_WXCOLORREF( m_pen.GetColour().GetPixel()); + ::SetCPixel( xx1,yy1,&pencolor) ; + CalcBoundingBox(x, y); } } diff --git a/src/mac/dc.cpp b/src/mac/dc.cpp index 0b9ac3ab1e..fcd86ce283 100644 --- a/src/mac/dc.cpp +++ b/src/mac/dc.cpp @@ -873,12 +873,11 @@ void wxDC::DoDrawPoint( wxCoord x, wxCoord y ) if (m_pen.GetStyle() != wxTRANSPARENT) { - MacInstallPen() ; wxCoord xx1 = XLOG2DEVMAC(x); wxCoord yy1 = YLOG2DEVMAC(y); - - ::MoveTo(xx1,yy1); - ::LineTo(xx1+1, yy1+1); + RGBColor pencolor = MAC_WXCOLORREF( m_pen.GetColour().GetPixel()); + ::SetCPixel( xx1,yy1,&pencolor) ; + CalcBoundingBox(x, y); } } -- 2.50.0