Implement DrawSpline in wxSVGFileDC

Drawing Bézier curves is supported natively in SVG so these curves
should be used instead of generic wxDC implementation based on
polygonal approximation.
This commit is contained in:
Artur Wieczorek
2021-07-04 19:22:02 +02:00
parent 02c90d126c
commit cc5bfc0fb1
2 changed files with 54 additions and 0 deletions

View File

@@ -198,6 +198,9 @@ private:
virtual void DoDrawLines(int n, const wxPoint points[],
wxCoord xoffset, wxCoord yoffset) wxOVERRIDE;
#if wxUSE_SPLINES
void DoDrawSpline(const wxPointList* points) wxOVERRIDE;
#endif // wxUSE_SPLINES
virtual void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE;