screen->columns=(size_t) GetDeviceCaps(hDC,HORZRES);
screen->rows=(size_t) GetDeviceCaps(hDC,VERTRES);
screen->storage_class=DirectClass;
- status=SetImageExtent(screen,screen->columns,screen->rows,exception);
- if (status == MagickFalse)
- return(DestroyImageList(image));
if (image == (Image *) NULL)
image=screen;
else
AppendImageToList(&image,screen);
+ status=SetImageExtent(screen,screen->columns,screen->rows,exception);
+ if (status == MagickFalse)
+ return(DestroyImageList(image));
bitmapDC=CreateCompatibleDC(hDC);
if (bitmapDC == (HDC) NULL)