diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index 69aeab5d657..24decbc0997 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -8824,7 +8824,8 @@ imagemagick_load_image (struct frame *f, struct image *img, | |||
| 8824 | #endif /* HAVE_MAGICKEXPORTIMAGEPIXELS */ | 8824 | #endif /* HAVE_MAGICKEXPORTIMAGEPIXELS */ |
| 8825 | { | 8825 | { |
| 8826 | size_t image_height; | 8826 | size_t image_height; |
| 8827 | MagickRealType color_scale = 65535.0 / (MagickRealType) QuantumRange; | 8827 | double quantum_range = QuantumRange; |
| 8828 | MagickRealType color_scale = 65535.0 / quantum_range; | ||
| 8828 | #ifdef USE_CAIRO | 8829 | #ifdef USE_CAIRO |
| 8829 | data = xmalloc (width * height * 4); | 8830 | data = xmalloc (width * height * 4); |
| 8830 | color_scale /= 256; | 8831 | color_scale /= 256; |