Skip to content

Commit 1c5b761

Browse files
authored
make it 'start_point' everywhere
1 parent 2518ee2 commit 1c5b761

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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_pos) -> Rect\nflood_fill(surface, pattern_surface, start_pos) -> Rect\nFill a connected area of same-color pixels."
13+
#define DOC_DRAW_FLOODFILL "flood_fill(surface, color, start_point) -> Rect\nflood_fill(surface, pattern_surface, start_point) -> Rect\nFill a connected area of same-color pixels."

src_c/draw.c

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

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

13171317
if (!PyArg_ParseTupleAndKeywords(arg, kwargs, "O!OO", keywords,
13181318
&pgSurface_Type, &surfobj, &colorobj,
@@ -1347,7 +1347,7 @@ flood_fill(PyObject *self, PyObject *arg, PyObject *kwargs)
13471347
}
13481348

13491349
if (!pg_TwoIntsFromObj(start, &startx, &starty)) {
1350-
return RAISE(PyExc_TypeError, "invalid start_pos argument");
1350+
return RAISE(PyExc_TypeError, "invalid start_point argument");
13511351
}
13521352

13531353
if (SDL_MUSTLOCK(surf)) {

0 commit comments

Comments
 (0)