Skip to content

Commit 148cbb5

Browse files
committed
switch start_point to start_pos
1 parent 84ade6e commit 148cbb5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

buildconfig/stubs/pygame/draw.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,18 +570,18 @@ def aalines(
570570
"""
571571

572572
def flood_fill(
573-
surface: Surface, color: Union[ColorLike, Surface], start_point: Point
573+
surface: Surface, color: Union[ColorLike, Surface], start_pos: Point
574574
) -> Rect:
575575
"""Replace the color of a cluster of connected same-color pixels, beginning
576-
from the starting point, with a repeating pattern or solid single color
576+
from the starting poosition, with a repeating pattern or solid single color
577577
578578
:param Surface surface: surface to draw on
579579
:param color: color, or surface pattern, to draw with. The alpha value is optional if using a
580580
tuple ``(RGB[A])``
581581
:type color: :data:`pygame.typing.ColorLike` or a pattern to fill with, as a Surface
582-
:param start_point: starting point as a sequence of 2 ints/floats,
582+
:param start_pos: starting position as a sequence of 2 ints/floats,
583583
e.g. ``(x, y)``
584-
:type start_point: tuple(int or float, int or float) or
584+
:type start_pos: tuple(int or float, int or float) or
585585
list(int or float, int or float) or Vector2(int or float, int or float)
586586
587587
:returns: a rect bounding the changed pixels, if nothing is drawn the

src_c/doc/draw_doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
#define DOC_DRAW_LINES "lines(surface, color, closed, points, width=1) -> Rect\nDraw multiple contiguous straight line segments."
1111
#define DOC_DRAW_AALINE "aaline(surface, color, start_pos, end_pos, width=1) -> Rect\nDraw a straight antialiased line."
1212
#define DOC_DRAW_AALINES "aalines(surface, color, closed, points) -> Rect\nDraw multiple contiguous straight antialiased line segments."
13-
#define DOC_DRAW_FLOODFILL "flood_fill(surface, color, start_point) -> Rect\nReplace the color of a cluster of connected same-color pixels, beginning"
13+
#define DOC_DRAW_FLOODFILL "flood_fill(surface, color, start_pos) -> Rect\nReplace the color of a cluster of connected same-color pixels, beginning"

src_c/draw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ flood_fill(PyObject *self, PyObject *arg, PyObject *kwargs)
13141314

13151315
int drawn_area[4] = {INT_MAX, INT_MAX, INT_MIN,
13161316
INT_MIN}; /* Used to store bounding box values */
1317-
static char *keywords[] = {"surface", "color", "start_point", NULL};
1317+
static char *keywords[] = {"surface", "color", "start_pos", NULL};
13181318

13191319
if (!PyArg_ParseTupleAndKeywords(arg, kwargs, "O!OO", keywords,
13201320
&pgSurface_Type, &surfobj, &colorobj,
@@ -1341,7 +1341,7 @@ flood_fill(PyObject *self, PyObject *arg, PyObject *kwargs)
13411341
}
13421342

13431343
if (!pg_TwoIntsFromObj(start, &startx, &starty)) {
1344-
return RAISE(PyExc_TypeError, "invalid start_point argument");
1344+
return RAISE(PyExc_TypeError, "invalid start_pos argument");
13451345
}
13461346

13471347
if (SDL_MUSTLOCK(surf)) {

0 commit comments

Comments
 (0)