Added colour option to blackandwhite and threshold magic tools. Since the blackandwhite tool is now the same as tint(with the exception that bandw handles tinting black in a better way) the blackandwhite tool was merged into tint.c and blackandwhite.c removed

This commit is contained in:
Andrew Corcoran 2008-07-20 19:46:08 +00:00
parent c54d6b31a7
commit b2e2289622
6 changed files with 157 additions and 364 deletions

View file

@ -5,6 +5,8 @@
Requires the mosaicAll sharpen and noise tools.
Tux Paint - A simple drawing program for children.
Credits: Andrew Corcoran <akanewbie@gmail.com>
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -37,9 +39,6 @@
#include <math.h>
#include <limits.h>
#include <time.h>
//#include "noise.c"
//#include "sharpen.c"
//#include "blur.c"
#ifndef gettext_noop
@ -371,7 +370,7 @@ void mosaic_switchin(magic_api * api, int which, int mode, SDL_Surface * canvas)
//Sharpen the temp surface
for (y = 0; y < canvas->h; y++){
for (x=0; x < canvas->w; x++){
//We dont want pixels to be affected by already blurred nearby pixels so we require two surfaces
//We dont want pixels to be affected by already sharpened pixels so we require two surfaces
mosaic_sharpen_pixel(api, mosaic_final, mosaic_temp, x, y);
}
}