% July 1992 %
% %
% %
-% Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2011 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 %
int
unique_file;
- ssize_t
- bytes;
-
register ssize_t
i;
- unsigned int
- levels;
-
size_t
number_pixels;
+ ssize_t
+ bytes;
+
+ unsigned int
+ levels;
+
/*
Write info about the X server to a file.
*/
Free font.
*/
if (font_info != (XFontStruct *) NULL)
- (void) XFreeFont(display,font_info);
+ {
+ (void) XFreeFont(display,font_info);
+ font_info=(XFontStruct *) NULL;
+ }
if (map_info != (XStandardColormap *) NULL)
{
/*
Initialize pixel array for images of type PseudoClass.
*/
for (i=0; i < (ssize_t) image->colors; i++)
- pixel->pixels[i]=
- XGammaPixel(map_info,image->colormap+i);
+ pixel->pixels[i]=XGammaPixel(map_info,image->colormap+i);
for (i=0; i < MaxNumberPens; i++)
pixel->pixels[image->colors+i]=pixel->pen_colors[i].pixel;
pixel->colors+=MaxNumberPens;
XrmDatabase database,const char *client_name,XResourceInfo *resource_info)
{
char
- *cwd,
+ *directory,
*resource_value;
/*
"borderColor",BorderColor);
resource_value=XGetResourceClass(database,client_name,"borderWidth",
(char *) "2");
- resource_info->border_width=(unsigned int) StringToUnsignedLong(resource_value);
+ resource_info->border_width=(unsigned int) StringToUnsignedLong(
+ resource_value);
resource_value=XGetResourceClass(database,client_name,"colormap",
(char *) "shared");
resource_info->colormap=UndefinedColormap;
client_name,"geometry",(char *) NULL));
resource_value=XGetResourceClass(database,client_name,"gravity",
(char *) "Center");
- resource_info->gravity=(GravityType) ParseMagickOption(MagickGravityOptions,
+ resource_info->gravity=(GravityType) ParseCommandOption(MagickGravityOptions,
MagickFalse,resource_value);
- cwd=getcwd(resource_info->home_directory,MaxTextExtent);
+ directory=getcwd(resource_info->home_directory,MaxTextExtent);
+ (void) directory;
resource_info->icon_geometry=XGetResourceClass(database,client_name,
"iconGeometry",(char *) NULL);
resource_value=XGetResourceClass(database,client_name,"iconic",
for (x=(int) canvas->columns-1; x >= 0; x--)
{
byte>>=1;
- if (p->opacity > (QuantumRange/2))
+ if (GetOpacityPixelComponent(p) > (QuantumRange/2))
byte|=0x80;
bit++;
if (bit == 8)
for (x=(int) canvas->columns-1; x >= 0; x--)
{
byte<<=1;
- if (p->opacity > (QuantumRange/2))
+ if (GetOpacityPixelComponent(p) > (QuantumRange/2))
byte|=0x01;
bit++;
if (bit == 8)
int
y;
- ssize_t
- n;
-
MagickPixelPacket
pixel;
*p,
*q;
+ ssize_t
+ n;
+
static unsigned int
previous_magnify = 0;