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

Arcs aren't drawn correctly on Windows 10, if sweep is negative #411

Open
lxn opened this issue Aug 16, 2018 · 2 comments
Open

Arcs aren't drawn correctly on Windows 10, if sweep is negative #411

lxn opened this issue Aug 16, 2018 · 2 comments
Milestone

Comments

@lxn
Copy link
Contributor

lxn commented Aug 16, 2018

Positive sweeps:

Positive sweep looks right

But when changing drawtests.c as below...

@@ -161,7 +161,7 @@ static void drawArcs(uiAreaDrawParams *p)
 
 	path = uiDrawNewPath(uiDrawFillModeWinding);
 
-	add = (2.0 * uiPi) / 12;
+	add = -(2.0 * uiPi) / 12;
 
 	x = start + rad;
 	y = start + rad;

...we get negative sweeps resulting in this:

Negative not so much

Same change on Linux:

Good on Linux

@andlabs
Copy link
Owner

andlabs commented Aug 16, 2018

Hm. I forget if I even have negative arc sweep as supported; I should see what it looks like on macOS as well...

@mischnic
Copy link
Contributor

mischnic commented Sep 3, 2018

Positive sweep:
default

Patch applied:
negative

@andlabs andlabs added this to the Alpha 5 milestone Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants