From aade790b1caaeee95164b0b59635f820783e0e32 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sat, 14 Sep 2019 12:10:26 -0700 Subject: [PATCH] Remove unused x/y args to would_flood_fill() Copy-pasta'd them --- src/fill.c | 2 +- src/fill.h | 2 +- src/tuxpaint.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fill.c b/src/fill.c index f33f0516b..450d21fdc 100644 --- a/src/fill.c +++ b/src/fill.c @@ -78,7 +78,7 @@ int colors_close(SDL_Surface * canvas, Uint32 c1, Uint32 c2) } -int would_flood_fill(SDL_Surface * canvas, int x, int y, Uint32 cur_colr, Uint32 old_colr) +int would_flood_fill(SDL_Surface * canvas, Uint32 cur_colr, Uint32 old_colr) { if (cur_colr == old_colr || colors_close(canvas, cur_colr, old_colr)) { diff --git a/src/fill.h b/src/fill.h index 9677bc459..aeba095c7 100644 --- a/src/fill.h +++ b/src/fill.h @@ -33,6 +33,6 @@ #include "SDL.h" -int would_flood_fill(SDL_Surface * canvas, int x, int y, Uint32 cur_colr, Uint32 old_colr); +int would_flood_fill(SDL_Surface * canvas, Uint32 cur_colr, Uint32 old_colr); void do_flood_fill(SDL_Surface * canvas, int x, int y, Uint32 cur_colr, Uint32 old_colr, int * x1, int * y1, int * x2, int * y2); diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 1f2021e4d..ed11f2eaf 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -4396,7 +4396,7 @@ static void mainloop(void) color_hexes[cur_color][2]); canv_color = getpixels[canvas->format->BytesPerPixel] (canvas, old_x, old_y); - if (would_flood_fill(canvas, old_x, old_y, draw_color, canv_color)) + if (would_flood_fill(canvas, draw_color, canv_color)) { /* We only bother recording an undo buffer (which may kill our redos) if we're about