]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dc.cpp
corrected warnings and removed useless extern declaration
[wxWidgets.git] / src / mac / dc.cpp
index 0b9ac3ab1e8817fd982d4344cd12521e6d61d470..fcd86ce2835fad420786be5c8fb8ca435d7f7518 100644 (file)
@@ -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);
   }
 }