Remove unused x/y args to would_flood_fill()
Copy-pasta'd them
This commit is contained in:
parent
41847ae4af
commit
aade790b1c
3 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue