plz help, i have problem with my program
i'm using recursion to do flood fill algorithm
void flood (int x, int y, int fillcolor,int oldcolor) {
putixel(x+1,y,fillcolor);
putixel(x-1,y,fillcolor);
putixel(x,y+1,fillcolor);
putixel(x,y-1,fillcolor);
}
that recursion algorithm will fit with a small object but not with large object
it seems a stack problem and result illegal instruction
any suggestion to fix?