BeOS parse error fixes

This commit is contained in:
Luc Schrijvers 2008-07-19 05:02:38 +00:00
parent dc7a056597
commit 24b409b5b5

View file

@ -121,6 +121,7 @@ static void do_blackAndWhite_pixel(void * ptr, int which,
Uint8 r1,g1,b1;
SDL_GetRGB(api->getpixel(last, x, y), last->format, &r1, &g1, &b1);
{
int greyValue = blackAndWhite_grey(r1,g1,b1);
if (which == TOOL_BANDW){
@ -134,6 +135,7 @@ static void do_blackAndWhite_pixel(void * ptr, int which,
}
}
}
}
// Do the effect:
static void do_blackAndWhite_full(void * ptr,SDL_Surface * canvas, SDL_Surface * last, int which){
@ -237,6 +239,7 @@ void blackAndWhite_switchin(magic_api * api, int which, int mode, SDL_Surface *
for (y = 0; y < canvas->h; y++){
for (x=0; x < canvas->w; x++){
SDL_GetRGB(api->getpixel(canvas, x, y), canvas->format, &r1, &g1, &b1);
{
int greyValue = blackAndWhite_grey(r1,g1,b1);
if (greyValue<bandw_min){
bandw_min=greyValue;
@ -247,6 +250,7 @@ void blackAndWhite_switchin(magic_api * api, int which, int mode, SDL_Surface *
}
}
}
}
void blackAndWhite_switchout(magic_api * api, int which, int mode, SDL_Surface * canvas)
{