Fixed appending circle/ellipse to wxGraphicsPath with Direct2D renderer.
Circle/ellipse should be appended as a closed sub-path and the current point after the operation should be moved to "the rightmost point" of the figure ((x+r,y) and (x+w,y+h/2) respectively). See #17520
This commit is contained in:
@@ -51,6 +51,7 @@ public:
|
||||
/**
|
||||
Appends a circle around (@a x,@a y) with radius @a r as a new closed
|
||||
subpath.
|
||||
After this call the current point will be at (@a x+@a r, @a y).
|
||||
*/
|
||||
virtual void AddCircle(wxDouble x, wxDouble y, wxDouble r);
|
||||
|
||||
@@ -70,7 +71,9 @@ public:
|
||||
const wxPoint2DDouble& e);
|
||||
|
||||
/**
|
||||
Appends an ellipse fitting into the passed in rectangle.
|
||||
Appends an ellipse fitting into the passed in rectangle as a new
|
||||
closed subpath.
|
||||
After this call the current point will be at (@a x+@a w, @a y+@a h/2).
|
||||
*/
|
||||
virtual void AddEllipse(wxDouble x, wxDouble y, wxDouble w, wxDouble h);
|
||||
|
||||
|
Reference in New Issue
Block a user