Removed unused argument

This commit is contained in:
Andrew Murray 2019-03-28 16:41:23 +11:00
parent ea5b30d212
commit 13224bf029
2 changed files with 5 additions and 6 deletions

View File

@ -75,9 +75,9 @@ class ImageDraw(object):
self.draw = Image.core.draw(self.im, blend)
self.mode = mode
if mode in ("I", "F"):
self.ink = self.draw.draw_ink(1, mode)
self.ink = self.draw.draw_ink(1)
else:
self.ink = self.draw.draw_ink(-1, mode)
self.ink = self.draw.draw_ink(-1)
if mode in ("1", "P", "I", "F"):
# FIXME: fix Fill2 to properly support matte for I+F images
self.fontmode = "1"
@ -110,13 +110,13 @@ class ImageDraw(object):
ink = ImageColor.getcolor(ink, self.mode)
if self.palette and not isinstance(ink, numbers.Number):
ink = self.palette.getcolor(ink)
ink = self.draw.draw_ink(ink, self.mode)
ink = self.draw.draw_ink(ink)
if fill is not None:
if isStringType(fill):
fill = ImageColor.getcolor(fill, self.mode)
if self.palette and not isinstance(fill, numbers.Number):
fill = self.palette.getcolor(fill)
fill = self.draw.draw_ink(fill, self.mode)
fill = self.draw.draw_ink(fill)
return ink, fill
def arc(self, xy, start, end, fill=None, width=0):

View File

@ -2642,8 +2642,7 @@ _draw_ink(ImagingDrawObject* self, PyObject* args)
{
INT32 ink = 0;
PyObject* color;
char* mode = NULL; /* not used in this release */
if (!PyArg_ParseTuple(args, "O|s", &color, &mode))
if (!PyArg_ParseTuple(args, "O", &color))
return NULL;
if (!getink(color, self->image->image, (char*) &ink))