]> granicus.if.org Git - imagemagick/commitdiff
Changed Background|Matte|BorderColor to MogrifyBackgroundColor, etc.,
authorglennrp <glennrp@git.imagemagick.org>
Sat, 6 Aug 2011 12:59:57 +0000 (12:59 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Sat, 6 Aug 2011 12:59:57 +0000 (12:59 +0000)
to avoid compiler error about redefining them in MagickWand/mogrify.c

MagickWand/mogrify.c

index 4062343072efb03ab73c0084490b55ac510fef6b..8587ece427c6eb28c132839f7cb088044e01c367 100644 (file)
@@ -58,9 +58,9 @@
  Constant declaration.
 */
 const char
-  BackgroundColor[] = "#ffffff",  /* white */
-  BorderColor[] = "#dfdfdf",  /* gray */
-  MatteColor[] = "#bdbdbd";  /* gray */
+  MogrifyBackgroundColor[] = "#ffffff",  /* white */
+  MogrifyBorderColor[] = "#dfdfdf",  /* gray */
+  MogrifyMatteColor[] = "#bdbdbd";  /* gray */
 \f
 /*
   Define declarations.
@@ -921,7 +921,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
           {
             if (*option == '+')
               {
-                (void) QueryColorDatabase(BorderColor,&draw_info->border_color,
+                (void) QueryColorDatabase(MogrifyBorderColor,&draw_info->border_color,
                   exception);
                 break;
               }
@@ -6140,7 +6140,7 @@ WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *image_info,
             if (*option == '+')
               {
                 (void) DeleteImageOption(image_info,option+1);
-                (void) QueryColorDatabase(BackgroundColor,
+                (void) QueryColorDatabase(MogrifyBackgroundColor,
                   &image_info->background_color,exception);
                 break;
               }
@@ -6184,7 +6184,7 @@ WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *image_info,
             if (*option == '+')
               {
                 (void) DeleteImageOption(image_info,option+1);
-                (void) QueryColorDatabase(BorderColor,&image_info->border_color,
+                (void) QueryColorDatabase(MogrifyBorderColor,&image_info->border_color,
                   exception);
                 break;
               }
@@ -6755,7 +6755,7 @@ WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *image_info,
             if (*option == '+')
               {
                 (void) SetImageOption(image_info,option+1,argv[i+1]);
-                (void) QueryColorDatabase(MatteColor,&image_info->matte_color,
+                (void) QueryColorDatabase(MogrifyMatteColor,&image_info->matte_color,
                   exception);
                 break;
               }