From: Elizabeth Figura zfigura@codeweavers.com
Windows generates L-shaped corners. --- dlls/win32u/dibdrv/graphics.c | 17 ----------------- 1 file changed, 17 deletions(-)
diff --git a/dlls/win32u/dibdrv/graphics.c b/dlls/win32u/dibdrv/graphics.c index 1554f8415d0..c629a59ae1b 100644 --- a/dlls/win32u/dibdrv/graphics.c +++ b/dlls/win32u/dibdrv/graphics.c @@ -240,17 +240,6 @@ static unsigned int generate_ellipse_top_half( const DC *dc, const RECT *rect, P /* Increment y, maybe increment x. */ y += y_inc;
- /* If this point has 45° slope, and it's directly adjacent to one - * we just wrote, using the algorithm as-is will select this point - * and then the one horizontally adjacent to it (our reflection - * across the 45° line.) This creates an L-shaped corner, which we - * don't want. Force incrementing X to skip that corner. */ - if (fabs(b * x + c * y) == fabs(a * x + b * y)) - { - x += x_inc; - continue; - } - sigma1 = (a * x * x) + (2 * b * x * y) + (c * y * y) - d; x += x_inc; sigma2 = (a * x * x) + (2 * b * x * y) + (c * y * y) - d; @@ -264,12 +253,6 @@ static unsigned int generate_ellipse_top_half( const DC *dc, const RECT *rect, P /* Increment x, maybe increment y. */ x += x_inc;
- if (fabs(b * x + c * y) == fabs(a * x + b * y)) - { - y += y_inc; - continue; - } - sigma1 = (a * x * x) + (2 * b * x * y) + (c * y * y) - d; y += y_inc; sigma2 = (a * x * x) + (2 * b * x * y) + (c * y * y) - d;