]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Wed, 22 May 2019 23:45:01 +0000 (19:45 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Wed, 22 May 2019 23:45:01 +0000 (19:45 -0400)
MagickCore/animate.c
MagickCore/display.c
configure

index c2392a59a2b75d8d17bf7cfb9fae0ddd80f01742..48cf8fd3d546a2c30dc78db2ecc2baa4a00c4496 100644 (file)
@@ -1214,8 +1214,8 @@ MagickExport Image *XAnimateImages(Display *display,
 #define MaXWindows  8
 #define MagickTitle  "Commands"
 
-  static const char
-    *CommandMenu[]=
+  const char
+    *const CommandMenu[]=
     {
       "Animate",
       "Speed",
@@ -1225,7 +1225,7 @@ MagickExport Image *XAnimateImages(Display *display,
       "Quit",
       (char *) NULL
     },
-    *AnimateMenu[]=
+    *const AnimateMenu[]=
     {
       "Open...",
       "Play",
@@ -1235,19 +1235,19 @@ MagickExport Image *XAnimateImages(Display *display,
       "Save...",
       (char *) NULL
     },
-    *SpeedMenu[]=
+    *const SpeedMenu[]=
     {
       "Faster",
       "Slower",
       (char *) NULL
     },
-    *DirectionMenu[]=
+    *const DirectionMenu[]=
     {
       "Forward",
       "Reverse",
       (char *) NULL
     },
-    *HelpMenu[]=
+    *const HelpMenu[]=
     {
       "Overview",
       "Browse Documentation",
@@ -1255,8 +1255,8 @@ MagickExport Image *XAnimateImages(Display *display,
       (char *) NULL
     };
 
-  static const char
-    **Menus[MagickMenus]=
+  const char
+    *const *Menus[MagickMenus]=
     {
       AnimateMenu,
       SpeedMenu,
index 4c15aa348dc70a78ac34525b42e3aaf4267b5d55..932309745c791ce2219272c139146b1c56b2d8b6 100644 (file)
@@ -121,26 +121,6 @@ static const unsigned char
   {
     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
   };
-
-static const char
-  *PageSizes[] =
-  {
-    "Letter",
-    "Tabloid",
-    "Ledger",
-    "Legal",
-    "Statement",
-    "Executive",
-    "A3",
-    "A4",
-    "A5",
-    "B4",
-    "B5",
-    "Folio",
-    "Quarto",
-    "10x14",
-    (char *) NULL
-  };
 \f
 /*
   Help widget declarations.
@@ -1793,8 +1773,8 @@ static MagickBooleanType XAnnotateEditImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image *image,
   ExceptionInfo *exception)
 {
-  static const char
-    *AnnotateMenu[] =
+  const char
+    *const AnnotateMenu[] =
     {
       "Font Name",
       "Font Color",
@@ -1804,7 +1784,7 @@ static MagickBooleanType XAnnotateEditImage(Display *display,
       "Dismiss",
       (char *) NULL
     },
-    *TextMenu[] =
+    *const TextMenu[] =
     {
       "Help",
       "Apply",
@@ -2078,11 +2058,8 @@ static MagickBooleanType XAnnotateEditImage(Display *display,
             int
               entry;
 
-            static char
-              angle[MagickPathExtent] = "30.0";
-
-            static const char
-              *RotateMenu[] =
+            const char
+              *const RotateMenu[] =
               {
                 "-90",
                 "-45",
@@ -2096,6 +2073,9 @@ static MagickBooleanType XAnnotateEditImage(Display *display,
                 (char *) NULL,
               };
 
+            static char
+              angle[MagickPathExtent] = "30.0";
+
             /*
               Select a command from the pop-up menu.
             */
@@ -2846,8 +2826,8 @@ static MagickBooleanType XChopImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image **image,
   ExceptionInfo *exception)
 {
-  static const char
-    *ChopMenu[] =
+  const char
+    *const ChopMenu[] =
     {
       "Direction",
       "Help",
@@ -2949,8 +2929,8 @@ static MagickBooleanType XChopImage(Display *display,
             char
               command[MagickPathExtent];
 
-            static const char
-              *Directions[] =
+            const char
+              *const Directions[] =
               {
                 "horizontal",
                 "vertical",
@@ -3271,8 +3251,8 @@ static MagickBooleanType XColorEditImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image **image,
   ExceptionInfo *exception)
 {
-  static const char
-    *ColorEditMenu[] =
+  const char
+    *const ColorEditMenu[] =
     {
       "Method",
       "Pixel Color",
@@ -3498,11 +3478,8 @@ static MagickBooleanType XColorEditImage(Display *display,
           }
           case ColorEditFuzzCommand:
           {
-            static char
-              fuzz[MagickPathExtent];
-
-            static const char
-              *FuzzMenu[] =
+            const char
+              *const FuzzMenu[] =
               {
                 "0%",
                 "2%",
@@ -3513,6 +3490,9 @@ static MagickBooleanType XColorEditImage(Display *display,
                 (char *) NULL,
               };
 
+            static char
+              fuzz[MagickPathExtent];
+
             /*
               Select a command from the pop-up menu.
             */
@@ -3894,12 +3874,8 @@ static MagickBooleanType XCompositeImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image *image,
   ExceptionInfo *exception)
 {
-  static char
-    displacement_geometry[MagickPathExtent] = "30x30",
-    filename[MagickPathExtent] = "\0";
-
-  static const char
-    *CompositeMenu[] =
+  const char
+    *const CompositeMenu[] =
     {
       "Operators",
       "Dissolve",
@@ -3909,6 +3885,10 @@ static MagickBooleanType XCompositeImage(Display *display,
       (char *) NULL
     };
 
+  static char
+    displacement_geometry[MagickPathExtent] = "30x30",
+    filename[MagickPathExtent] = "\0";
+
   static CompositeOperator
     compose = CopyCompositeOp;
 
@@ -4559,8 +4539,8 @@ static MagickBooleanType XCropImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image *image,
   const ClipboardMode mode,ExceptionInfo *exception)
 {
-  static const char
-    *CropModeMenu[] =
+  const char
+    *const CropModeMenu[] =
     {
       "Help",
       "Dismiss",
@@ -5395,8 +5375,8 @@ static MagickBooleanType XDrawEditImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image **image,
   ExceptionInfo *exception)
 {
-  static const char
-    *DrawMenu[] =
+  const char
+    *const DrawMenu[] =
     {
       "Element",
       "Color",
@@ -5542,8 +5522,8 @@ static MagickBooleanType XDrawEditImage(Display *display,
           {
             case DrawElementCommand:
             {
-              static const char
-                *Elements[] =
+              const char
+                *const Elements[] =
                 {
                   "point",
                   "line",
@@ -5628,19 +5608,7 @@ static MagickBooleanType XDrawEditImage(Display *display,
             }
             case DrawStippleCommand:
             {
-              Image
-                *stipple_image;
-
-              ImageInfo
-                *image_info;
-
-              int
-                status;
-
-              static char
-                filename[MagickPathExtent] = "\0";
-
-              static const char
+              const char
                 *StipplesMenu[] =
                 {
                   "Brick",
@@ -5654,6 +5622,18 @@ static MagickBooleanType XDrawEditImage(Display *display,
                   (char *) NULL,
                 };
 
+              Image
+                *stipple_image;
+
+              ImageInfo
+                *image_info;
+
+              int
+                status;
+
+              static char
+                filename[MagickPathExtent] = "\0";
+
               /*
                 Select a command from the pop-up menu.
               */
@@ -5748,11 +5728,8 @@ static MagickBooleanType XDrawEditImage(Display *display,
             }
             case DrawWidthCommand:
             {
-              static char
-                width[MagickPathExtent] = "0";
-
-              static const char
-                *WidthsMenu[] =
+              const char
+                *const WidthsMenu[] =
                 {
                   "1",
                   "2",
@@ -5763,6 +5740,9 @@ static MagickBooleanType XDrawEditImage(Display *display,
                   (char *) NULL,
                 };
 
+              static char
+                width[MagickPathExtent] = "0";
+
               /*
                 Select a command from the pop-up menu.
               */
@@ -9650,11 +9630,8 @@ static MagickBooleanType XMatteEditImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image **image,
   ExceptionInfo *exception)
 {
-  static char
-    matte[MagickPathExtent] = "0";
-
-  static const char
-    *MatteEditMenu[] =
+  const char
+    *const MatteEditMenu[] =
     {
       "Method",
       "Border Color",
@@ -9666,6 +9643,9 @@ static MagickBooleanType XMatteEditImage(Display *display,
       (char *) NULL
     };
 
+  static char
+    matte[MagickPathExtent] = "0";
+
   static const ModeType
     MatteEditCommands[] =
     {
@@ -9828,11 +9808,8 @@ static MagickBooleanType XMatteEditImage(Display *display,
           }
           case MatteEditFuzzCommand:
           {
-            static char
-              fuzz[MagickPathExtent];
-
-            static const char
-              *FuzzMenu[] =
+            const char
+              *const FuzzMenu[] =
               {
                 "0%",
                 "2%",
@@ -9843,6 +9820,9 @@ static MagickBooleanType XMatteEditImage(Display *display,
                 (char *) NULL,
               };
 
+            static char
+              fuzz[MagickPathExtent];
+
             /*
               Select a command from the pop-up menu.
             */
@@ -9868,11 +9848,8 @@ static MagickBooleanType XMatteEditImage(Display *display,
           }
           case MatteEditValueCommand:
           {
-            static char
-              message[MagickPathExtent];
-
-            static const char
-              *MatteMenu[] =
+            const char
+              *const MatteMenu[] =
               {
                 "Opaque",
                 "Transparent",
@@ -9880,6 +9857,9 @@ static MagickBooleanType XMatteEditImage(Display *display,
                 (char *) NULL,
               };
 
+            static char
+              message[MagickPathExtent];
+
             /*
               Select a command from the pop-up menu.
             */
@@ -10600,8 +10580,8 @@ static MagickBooleanType XPasteImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,Image *image,
   ExceptionInfo *exception)
 {
-  static const char
-    *PasteMenu[] =
+  const char
+    *const PasteMenu[] =
     {
       "Operator",
       "Help",
@@ -10976,6 +10956,26 @@ static MagickBooleanType XPrintImage(Display *display,
     filename[MagickPathExtent],
     geometry[MagickPathExtent];
 
+  const char
+    *const PageSizes[] =
+    {
+      "Letter",
+      "Tabloid",
+      "Ledger",
+      "Legal",
+      "Statement",
+      "Executive",
+      "A3",
+      "A4",
+      "A5",
+      "B4",
+      "B5",
+      "Folio",
+      "Quarto",
+      "10x14",
+      (char *) NULL
+    };
+
   Image
     *print_image;
 
@@ -11062,14 +11062,14 @@ static MagickBooleanType XROIImage(Display *display,
 {
 #define ApplyMenus  7
 
-  static const char
-    *ROIMenu[] =
+  const char
+    *const ROIMenu[] =
     {
       "Help",
       "Dismiss",
       (char *) NULL
     },
-    *ApplyMenu[] =
+    *const ApplyMenu[] =
     {
       "File",
       "Edit",
@@ -11082,19 +11082,19 @@ static MagickBooleanType XROIImage(Display *display,
       "Dismiss",
       (char *) NULL
     },
-    *FileMenu[] =
+    *const FileMenu[] =
     {
       "Save...",
       "Print...",
       (char *) NULL
     },
-    *EditMenu[] =
+    *const EditMenu[] =
     {
       "Undo",
       "Redo",
       (char *) NULL
     },
-    *TransformMenu[] =
+    *const TransformMenu[] =
     {
       "Flop",
       "Flip",
@@ -11102,7 +11102,7 @@ static MagickBooleanType XROIImage(Display *display,
       "Rotate Left",
       (char *) NULL
     },
-    *EnhanceMenu[] =
+    *const EnhanceMenu[] =
     {
       "Hue...",
       "Saturation...",
@@ -11120,7 +11120,7 @@ static MagickBooleanType XROIImage(Display *display,
       "Quantize...",
       (char *) NULL
     },
-    *EffectsMenu[] =
+    *const EffectsMenu[] =
     {
       "Despeckle",
       "Emboss",
@@ -11136,7 +11136,7 @@ static MagickBooleanType XROIImage(Display *display,
       "Segment...",
       (char *) NULL
     },
-    *FXMenu[] =
+    *const FXMenu[] =
     {
       "Solarize...",
       "Sepia Tone...",
@@ -11148,7 +11148,7 @@ static MagickBooleanType XROIImage(Display *display,
       "Charcoal Draw...",
       (char *) NULL
     },
-    *MiscellanyMenu[] =
+    *const MiscellanyMenu[] =
     {
       "Image Info",
       "Zoom Image",
@@ -11158,8 +11158,8 @@ static MagickBooleanType XROIImage(Display *display,
       (char *) NULL
     };
 
-  static const char
-    **Menus[ApplyMenus] =
+  const char
+    *const *Menus[ApplyMenus] =
     {
       FileMenu,
       EditMenu,
@@ -12013,8 +12013,8 @@ static MagickBooleanType XRotateImage(Display *display,
   XResourceInfo *resource_info,XWindows *windows,double degrees,Image **image,
   ExceptionInfo *exception)
 {
-  static const char
-    *RotateMenu[] =
+  const char
+    *const RotateMenu[] =
     {
       "Pixel Color",
       "Direction",
@@ -12172,7 +12172,7 @@ static MagickBooleanType XRotateImage(Display *display,
               }
               case RotateDirectionCommand:
               {
-                static const char
+                const char
                   *Directions[] =
                   {
                     "horizontal",
@@ -12610,6 +12610,26 @@ static MagickBooleanType XSaveImage(Display *display,
       char
         geometry[MagickPathExtent];
 
+      const char
+        *const PageSizes[] =
+        {
+          "Letter",
+          "Tabloid",
+          "Ledger",
+          "Legal",
+          "Statement",
+          "Executive",
+          "A3",
+          "A4",
+          "A5",
+          "B4",
+          "B5",
+          "Folio",
+          "Quarto",
+          "10x14",
+          (char *) NULL
+        };
+
       /*
         Request page geometry from user.
       */
@@ -13052,8 +13072,8 @@ static void XSetCropGeometry(Display *display,XWindows *windows,
 static Image *XTileImage(Display *display,XResourceInfo *resource_info,
   XWindows *windows,Image *image,XEvent *event,ExceptionInfo *exception)
 {
-  static const char
-    *VerbMenu[] =
+  const char
+    *const VerbMenu[] =
     {
       "Load",
       "Next",
@@ -14073,8 +14093,8 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
 #define MagickMenus  10
 #define MagickTitle  "Commands"
 
-  static const char
-    *CommandMenu[] =
+  const char
+    *const CommandMenu[] =
     {
       "File",
       "Edit",
@@ -14088,7 +14108,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Help",
       (char *) NULL
     },
-    *FileMenu[] =
+    *const FileMenu[] =
     {
       "Open...",
       "Next",
@@ -14102,7 +14122,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Quit",
       (char *) NULL
     },
-    *EditMenu[] =
+    *const EditMenu[] =
     {
       "Undo",
       "Redo",
@@ -14111,7 +14131,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Paste",
       (char *) NULL
     },
-    *ViewMenu[] =
+    *const ViewMenu[] =
     {
       "Half Size",
       "Original Size",
@@ -14122,7 +14142,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Restore",
       (char *) NULL
     },
-    *TransformMenu[] =
+    *const TransformMenu[] =
     {
       "Crop",
       "Chop",
@@ -14136,7 +14156,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Trim Edges",
       (char *) NULL
     },
-    *EnhanceMenu[] =
+    *const EnhanceMenu[] =
     {
       "Hue...",
       "Saturation...",
@@ -14154,7 +14174,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Quantize...",
       (char *) NULL
     },
-    *EffectsMenu[] =
+    *const EffectsMenu[] =
     {
       "Despeckle",
       "Emboss",
@@ -14170,7 +14190,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Segment...",
       (char *) NULL
     },
-    *FXMenu[] =
+    *const FXMenu[] =
     {
       "Solarize...",
       "Sepia Tone...",
@@ -14182,7 +14202,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Charcoal Draw...",
       (char *) NULL
     },
-    *ImageEditMenu[] =
+    *const ImageEditMenu[] =
     {
       "Annotate...",
       "Draw...",
@@ -14196,7 +14216,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Region of Interest...",
       (char *) NULL
     },
-    *MiscellanyMenu[] =
+    *const MiscellanyMenu[] =
     {
       "Image Info",
       "Zoom Image",
@@ -14208,14 +14228,14 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Preferences...",
       (char *) NULL
     },
-    *HelpMenu[] =
+    *const HelpMenu[] =
     {
       "Overview",
       "Browse Documentation",
       "About Display",
       (char *) NULL
     },
-    *ShortCutsMenu[] =
+    *const ShortCutsMenu[] =
     {
       "Next",
       "Former",
@@ -14228,7 +14248,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       "Quit",
       (char *) NULL
     },
-    *VirtualMenu[] =
+    *const VirtualMenu[] =
     {
       "Image Info",
       "Print",
@@ -14237,8 +14257,8 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
       (char *) NULL
     };
 
-  static const char
-    **Menus[MagickMenus] =
+  const char
+    *const *Menus[MagickMenus] =
     {
       FileMenu,
       EditMenu,
@@ -14950,8 +14970,8 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
     resource_info->client_name);
   windows->magnify.geometry=XGetResourceClass(resource_info->resource_database,
     resource_name,"geometry",(char *) NULL);
-  (void) FormatLocaleString(windows->magnify.name,MagickPathExtent,"Magnify %uX",
-    resource_info->magnify);
+  (void) FormatLocaleString(windows->magnify.name,MagickPathExtent,
+    "Magnify %uX",resource_info->magnify);
   if (windows->magnify.cursor != (Cursor) NULL)
     (void) XFreeCursor(display,windows->magnify.cursor);
   windows->magnify.cursor=XMakeCursor(display,windows->image.id,
@@ -15289,11 +15309,8 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
           }
         if (event.xbutton.window == windows->magnify.id)
           {
-            int
-              factor;
-
-            static const char
-              *MagnifyMenu[] =
+            const char
+              *const MagnifyMenu[] =
               {
                 "2",
                 "4",
@@ -15306,6 +15323,9 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
                 (char *) NULL,
               };
 
+            int
+              factor;
+
             static KeySym
               MagnifyCommands[] =
               {
index 32dc2a9ee59ba2e3487bf525063ebf566077773a..8495bad400f63a4089383b70069791ba993a195e 100755 (executable)
--- a/configure
+++ b/configure
@@ -4570,7 +4570,7 @@ MAGICK_PATCHLEVEL_VERSION=47
 
 MAGICK_VERSION=7.0.8-47
 
-MAGICK_GIT_REVISION=15662:2b9cbc8ee:20190520
+MAGICK_GIT_REVISION=15669:ae5998892:20190522
 
 
 # Substitute library versioning