BeOS parse error fixes
This commit is contained in:
parent
dc7a056597
commit
24b409b5b5
1 changed files with 5 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
@ -133,6 +134,7 @@ static void do_blackAndWhite_pixel(void * ptr, int which,
|
|||
api->putpixel(canvas, x, y, SDL_MapRGB(canvas->format, 255, 255, 255));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Do the effect:
|
||||
|
|
@ -237,13 +239,15 @@ 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;
|
||||
}
|
||||
if (greyValue>bandw_max){
|
||||
bandw_max=greyValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue