]> git.saurik.com Git - wxWidgets.git/commitdiff
don't override DoDrawSpline() under CE at all instead of overriding it and then alway...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 May 2008 14:13:15 +0000 (14:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 May 2008 14:13:15 +0000 (14:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/dc.h
src/msw/dc.cpp

index b031941f5e7eefe592f50b7ed80f1c5ff84e62c8..a4f6922d848752d9149ffba14229592247ea3ceb 100644 (file)
@@ -199,7 +199,7 @@ public:
                                         double radius);
     virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
 
-#if wxUSE_SPLINES
+#if wxUSE_SPLINES && !defined(__WXWINCE__)
     virtual void DoDrawSpline(const wxPointList *points);
 #endif
 
index 5dbd1f291f91988b2b0f943a8f1ee345be93e5d4..e4b14e7c818d5f312583ee7f0c4dc050e903521c 100644 (file)
@@ -1083,13 +1083,9 @@ void wxMSWDCImpl::DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord hei
     CalcBoundingBox(x2, y2);
 }
 
-#if wxUSE_SPLINES
+#if wxUSE_SPLINES && !defined(__WXWINCE__)
 void wxMSWDCImpl::DoDrawSpline(const wxPointList *points)
 {
-#ifdef  __WXWINCE__
-    // WinCE does not support ::PolyBezier so use generic version
-    wxDCImpl::DoDrawSpline(points);
-#else
     // quadratic b-spline to cubic bezier spline conversion
     //
     // quadratic spline with control points P0,P1,P2
@@ -1178,9 +1174,8 @@ void wxMSWDCImpl::DoDrawSpline(const wxPointList *points)
     ::PolyBezier( GetHdc(), lppt, bezier_pos );
 
     free(lppt);
-#endif
 }
-#endif
+#endif // wxUSE_SPLINES
 
 // Chris Breeze 20/5/98: first implementation of DrawEllipticArc on Windows
 void wxMSWDCImpl::DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea)