Skip to content

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

@lxn

Description

@lxn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions