Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed arc drawing bug for a non-whole number of degrees #4014

Open
wants to merge 1 commit into
base: master
from

Conversation

@radarhere
Copy link
Member

commented Aug 6, 2019

Resolves #4005

If the angle between the start and end of an arc is not a whole number

ellipse(Imaging im, int x0, int y0, int x1, int y1,
float start, float end, const void* ink_, int fill,

int maxEdgeCount;

then simply combining the two floats is not correct.

maxEdgeCount = end - start;

@cgohlke figured this out, and solves it by rounding up.

@radarhere radarhere force-pushed the radarhere:arc branch from 00202c6 to 8fff9a2 Aug 11, 2019

@radarhere radarhere added the Bug label Aug 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.