diff options
| author | Paul Eggert | 2025-01-18 23:26:02 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-01-18 23:28:11 -0800 |
| commit | fb434b85167d28e6739c8fc6fa80970011b79a0d (patch) | |
| tree | 9f096946cf1c45d64e5c42ad2d9bdbbdda832a37 /src | |
| parent | abf2e097b281c92a7bc2776a967893b248a68384 (diff) | |
| download | emacs-fb434b85167d28e6739c8fc6fa80970011b79a0d.tar.gz emacs-fb434b85167d28e6739c8fc6fa80970011b79a0d.zip | |
Always define image_compute_scale
* src/image.c (image_compute_scale): Define even if
! (defined HAVE_IMAGEMAGICK || defined HAVE_NATIVE_TRANSFORMS),
because it is always used. Needed in platforms that lack all
those image libraries.
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index 640e2a99904..bae7c13ac82 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2672,6 +2672,7 @@ image_get_dimension (struct image *img, Lisp_Object symbol) | |||
| 2672 | } | 2672 | } |
| 2673 | return -1; | 2673 | return -1; |
| 2674 | } | 2674 | } |
| 2675 | #endif | ||
| 2675 | 2676 | ||
| 2676 | /* Calculate the scale of the image. IMG may be null as it is only | 2677 | /* Calculate the scale of the image. IMG may be null as it is only |
| 2677 | required when creating an image, and this function is called from | 2678 | required when creating an image, and this function is called from |
| @@ -2727,6 +2728,7 @@ image_compute_scale (struct frame *f, Lisp_Object spec, struct image *img) | |||
| 2727 | return scale; | 2728 | return scale; |
| 2728 | } | 2729 | } |
| 2729 | 2730 | ||
| 2731 | #if defined HAVE_IMAGEMAGICK || defined HAVE_NATIVE_TRANSFORMS | ||
| 2730 | /* Compute the desired size of an image with native size WIDTH x HEIGHT, | 2732 | /* Compute the desired size of an image with native size WIDTH x HEIGHT, |
| 2731 | which is to be displayed on F. Use IMG to deduce the size. Store | 2733 | which is to be displayed on F. Use IMG to deduce the size. Store |
| 2732 | the desired size into *D_WIDTH x *D_HEIGHT. Store -1 x -1 if the | 2734 | the desired size into *D_WIDTH x *D_HEIGHT. Store -1 x -1 if the |