mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Try to fix CI
This commit is contained in:
parent
7dedb1402f
commit
88651c334f
|
@ -165,7 +165,7 @@ def test_arc_width_non_whole_angle():
|
|||
|
||||
def test_arc_high():
|
||||
# Arrange
|
||||
im = Image.new("RGB", (200, 200));
|
||||
im = Image.new("RGB", (200, 200))
|
||||
draw = ImageDraw.Draw(im)
|
||||
|
||||
# Act
|
||||
|
@ -252,7 +252,7 @@ def test_chord_zero_width():
|
|||
|
||||
def test_chord_too_fat():
|
||||
# Arrange
|
||||
im = Image.new("RGB", (100, 100));
|
||||
im = Image.new("RGB", (100, 100))
|
||||
draw = ImageDraw.Draw(im)
|
||||
|
||||
# Act
|
||||
|
@ -401,7 +401,9 @@ def test_ellipse_various_sizes():
|
|||
def test_ellipse_various_sizes_filled():
|
||||
im = ellipse_various_sizes_helper(True)
|
||||
|
||||
with Image.open("Tests/images/imagedraw_ellipse_various_sizes_filled.png") as expected:
|
||||
with Image.open(
|
||||
"Tests/images/imagedraw_ellipse_various_sizes_filled.png"
|
||||
) as expected:
|
||||
assert_image_equal(im, expected)
|
||||
|
||||
|
||||
|
@ -529,7 +531,7 @@ def test_pieslice_zero_width():
|
|||
|
||||
def test_pieslice_wide():
|
||||
# Arrange
|
||||
im = Image.new("RGB", (200, 100));
|
||||
im = Image.new("RGB", (200, 100))
|
||||
draw = ImageDraw.Draw(im)
|
||||
|
||||
# Act
|
||||
|
|
|
@ -1050,10 +1050,10 @@ int clip_tree_do_clip(clip_node* root, int32_t x0, int32_t y, int32_t x1, event_
|
|||
// X of intersection
|
||||
double ix = - (B * y + C) / A;
|
||||
if (A * x0 + B * y + C < eps) {
|
||||
x0 = round(fmax(x0, ix));
|
||||
x0 = lround(fmax(x0, ix));
|
||||
}
|
||||
if (A * x1 + B * y + C < eps) {
|
||||
x1 = round(fmin(x1, ix));
|
||||
x1 = lround(fmin(x1, ix));
|
||||
}
|
||||
}
|
||||
if (x0 <= x1) {
|
||||
|
@ -1557,7 +1557,7 @@ ImagingDrawPieslice(Imaging im, int x0, int y0, int x1, int y1,
|
|||
if (pieSideNew(im, x0, y0, x1, y1, end, ink, width, op)) {
|
||||
return -1;
|
||||
}
|
||||
float xc = round((x0 + x1 - width) / 2.0), yc = round((y0 + y1 - width) / 2.0);
|
||||
int xc = lround((x0 + x1 - width) / 2.0), yc = lround((y0 + y1 - width) / 2.0);
|
||||
ellipseNew(im, xc, yc, xc + width - 1, yc + width - 1, ink, 1, 0, op);
|
||||
return pieNew(im, x0, y0, x1, y1, start, end, ink, width, op);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user