mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
Removed unused argument
This commit is contained in:
parent
ea5b30d212
commit
13224bf029
|
@ -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):
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user