]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 16 May 2012 18:10:49 +0000 (18:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 16 May 2012 18:10:49 +0000 (18:10 +0000)
MagickCore/paint.c

index 1b656e798a64a267abe41684e0ba2f0c8981c490..547f8cfbe874ba6339411a8c6692ce95c470dc3b 100644 (file)
@@ -183,8 +183,11 @@ MagickExport MagickBooleanType FloodfillPaintImage(Image *image,
     exception);
   if (floodplane_image == (Image *) NULL)
     return(MagickFalse);
-  SetImageColorspace(floodplane_image,GRAYColorspace,exception);
-  (void) EvaluateImage(floodplane_image,SetEvaluateOperator,0.0,exception);
+  floodplane_image->matte=MagickFalse;
+  floodplane_image->colorspace=GRAYColorspace;
+  (void) QueryColorCompliance("#000",AllCompliance,
+    &floodplane_image->background_color,exception);
+  (void) SetImageBackgroundColor(floodplane_image,exception);
   segment_stack=(SegmentInfo *) AcquireQuantumMemory(MaxStacksize,
     sizeof(*segment_stack));
   if (segment_stack == (SegmentInfo *) NULL)