(int) image->background_color.green,
(int) image->background_color.blue);
}
- for (i=0; i<number_opaque; i++)
- {
- if (opaque[i].red == image->background_color.red &&
- opaque[i].green == image->background_color.green &&
- opaque[i].blue == image->background_color.blue)
- break;
- }
- if (number_opaque < 259 && i == number_opaque)
+ if (number_opaque < 259)
{
- opaque[i] = image->background_color;
- ping_background.index = i;
- number_opaque++;
- if (logging != MagickFalse)
- {
- (void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " background_color index is %d",(int) i);
- }
+ for (i=0; i<number_opaque; i++)
+ {
+ if (opaque[i].red == image->background_color.red &&
+ opaque[i].green == image->background_color.green &&
+ opaque[i].blue == image->background_color.blue)
+ break;
+ }
+ if (i == number_opaque)
+ {
+ opaque[i] = image->background_color;
+ ping_background.index = i;
+ number_opaque++;
+ if (logging != MagickFalse)
+ {
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " background_color index is %d",(int) i);
+ }
+ }
}
else if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),