From: Elizabeth Figura zfigura@codeweavers.com
Whether native does so is inconsistent, but we need this to ensure that the round rect quarter-arcs we generate actually do include the center on both sides if the size is odd. --- dlls/win32u/dibdrv/graphics.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/win32u/dibdrv/graphics.c b/dlls/win32u/dibdrv/graphics.c index 0a54eec8a0c..5f715209362 100644 --- a/dlls/win32u/dibdrv/graphics.c +++ b/dlls/win32u/dibdrv/graphics.c @@ -340,6 +340,8 @@ static int get_arc_points( DC *dc, int arc_dir, const RECT *rect, int start_x, i start_pos = end_pos; end_pos = tmp; } + if (end_pos != start_pos) + ++end_pos; if (end_pos <= start_pos) end_pos += 2 * count;
/* The bottom half of the ellipse can be generated by reflecting each