Browse Source

add -1 option for backward compatibility (particularly with soft2egg)

David Rose 23 years ago
parent
commit
ef9eb13c06
1 changed files with 6 additions and 0 deletions
  1. 6 0
      pandatool/src/imageprogs/imageResize.cxx

+ 6 - 0
pandatool/src/imageprogs/imageResize.cxx

@@ -49,6 +49,12 @@ ImageResize() : ImageFilter(true) {
      "Use Gaussian filtering to resize the image, with the indicated radius.",
      "Use Gaussian filtering to resize the image, with the indicated radius.",
      &ImageResize::dispatch_double, &_use_gaussian_filter, &_filter_radius);
      &ImageResize::dispatch_double, &_use_gaussian_filter, &_filter_radius);
 
 
+  add_option
+    ("1", "", 0,
+     "This option is ignored.  It is provided only for backward compatibility "
+     "with a previous version of image-resize.",
+     &ImageResize::dispatch_none, NULL, NULL);
+
   _filter_radius = 1.0;
   _filter_radius = 1.0;
 }
 }