% July 1992 %
% %
% %
-% Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
#include "MagickCore/static.h"
#include "MagickCore/string_.h"
#include "MagickCore/module.h"
+#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/xwindow.h"
#include "MagickCore/xwindow-private.h"
*/
static Image *ReadXImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
- const char
- *option;
-
XImportInfo
ximage_info;
(void) exception;
XGetImportInfo(&ximage_info);
- option=GetImageOption(image_info,"x:screen");
- if (option != (const char *) NULL)
- ximage_info.screen=IsMagickTrue(option);
- option=GetImageOption(image_info,"x:silent");
- if (option != (const char *) NULL)
- ximage_info.silent=IsMagickTrue(option);
+ ximage_info.screen=IsStringTrue(GetImageOption(image_info,"x:screen"));
+ ximage_info.silent=IsStringTrue(GetImageOption(image_info,"x:silent"));
return(XImportImage(image_info,&ximage_info,exception));
}
#endif