Remove unused x/y args to would_flood_fill()

Copy-pasta'd them
This commit is contained in:
Bill Kendrick 2019-09-14 12:10:26 -07:00
parent 41847ae4af
commit aade790b1c
3 changed files with 3 additions and 3 deletions

View file

@ -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)) if (cur_colr == old_colr || colors_close(canvas, cur_colr, old_colr))
{ {

View file

@ -33,6 +33,6 @@
#include "SDL.h" #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); 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);

View file

@ -4396,7 +4396,7 @@ static void mainloop(void)
color_hexes[cur_color][2]); color_hexes[cur_color][2]);
canv_color = getpixels[canvas->format->BytesPerPixel] (canvas, old_x, old_y); 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 /* We only bother recording an undo buffer
(which may kill our redos) if we're about (which may kill our redos) if we're about