entry=SetMagickInfo("UIL");
entry->encoder=(EncodeImageHandler *) WriteUILImage;
- entry->adjoin=MagickFalse;
+ entry->flags^=CoderAdjoinFlag;
entry->description=ConstantString("X-Motif UIL table");
entry->module=ConstantString("UIL");
(void) RegisterMagickInfo(entry);
else
(void) FormatLocaleString(buffer,MaxTextExtent,
" color('%s',%s) = '%s'",name,
- GetPixelInfoIntensity(image->colormap+i) <
- (QuantumRange/2) ? "background" : "foreground",symbol);
+ GetPixelInfoIntensity(image,image->colormap+i) <
+ (QuantumRange/2.0) ? "background" : "foreground",symbol);
(void) WriteBlobString(image,buffer);
(void) FormatLocaleString(buffer,MaxTextExtent,"%s",
(i == (ssize_t) (colors-1) ? ");\n" : ",\n"));