aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index a95a7bf27f9..29cb2fc10b9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2035,6 +2035,8 @@ image_set_rotation (struct image *img, double tm[3][3])
2035static void 2035static void
2036image_set_crop (struct image *img, double tm[3][3]) 2036image_set_crop (struct image *img, double tm[3][3])
2037{ 2037{
2038 int width, height;
2039 compute_image_size (img->width, img->height, img->spec, &width, &height);
2038#ifdef HAVE_NATIVE_TRANSFORMS 2040#ifdef HAVE_NATIVE_TRANSFORMS
2039# ifdef HAVE_IMAGEMAGICK 2041# ifdef HAVE_IMAGEMAGICK
2040 /* ImageMagick images are already cropped. */ 2042 /* ImageMagick images are already cropped. */
@@ -2051,7 +2053,7 @@ image_set_crop (struct image *img, double tm[3][3])
2051# endif 2053# endif
2052 2054
2053 double m[3][3], tmp[3][3]; 2055 double m[3][3], tmp[3][3];
2054 int left, top, width, height; 2056 int left, top;
2055 Lisp_Object x = Qnil; 2057 Lisp_Object x = Qnil;
2056 Lisp_Object y = Qnil; 2058 Lisp_Object y = Qnil;
2057 Lisp_Object w = Qnil; 2059 Lisp_Object w = Qnil;