resource_info.immutable=MagickTrue;
argv[0]=AcquireString(GetClientName());
(void) XAnimateImages(display,&resource_info,argv,1,images,exception);
+ SetErrorHandler((ErrorHandler) NULL);
+ SetWarningHandler((WarningHandler) NULL);
+ SetErrorHandler((ErrorHandler) NULL);
+ SetWarningHandler((WarningHandler) NULL);
argv[0]=DestroyString(argv[0]);
(void) XCloseDisplay(display);
XDestroyResourceInfo(&resource_info);
image=GetImageFromList(images,i % GetImageListLength(images));
(void) XDisplayImage(display,&resource_info,argv,1,&image,&state,exception);
}
+ SetErrorHandler((ErrorHandler) NULL);
+ SetWarningHandler((WarningHandler) NULL);
argv[0]=DestroyString(argv[0]);
(void) XCloseDisplay(display);
XDestroyResourceInfo(&resource_info);
PixelPacket *pixel,ExceptionInfo *exception)
{
const Quantum
- *q;
+ *p;
assert(image != (Image *) NULL);
assert(image->signature == MagickSignature);
*pixel=image->background_color;
- q=GetVirtualPixelStream(image,virtual_pixel_method,x,y,1,1,exception);
- if (q != (const Quantum *) NULL)
+ p=GetVirtualPixelStream(image,virtual_pixel_method,x,y,1,1,exception);
+ if (p == (const Quantum *) NULL)
return(MagickFalse);
- GetPixelPacket(image,q,pixel);
+ GetPixelPacket(image,p,pixel);
+ if (image->colorspace == CMYKColorspace)
+ pixel->black=GetPixelBlack(image,p);
return(MagickTrue);
}
\f