From 6ffcd0d934e028732484ac1f9085901d1515036a Mon Sep 17 00:00:00 2001 From: Alan Third Date: Fri, 16 Apr 2021 19:12:23 +0100 Subject: [PATCH] Make :scale affect :width and :height (bug#47819) * src/image.c (compute_image_size): Multiply width and height values by scale. --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index 1619886f5a..ff4ef01804 100644 --- a/src/image.c +++ b/src/image.c @@ -2040,7 +2040,7 @@ compute_image_size (size_t width, size_t height, int_value = image_get_dimension (img, QCwidth); if (int_value >= 0) { - desired_width = int_value; + desired_width = int_value * scale; /* :width overrides :max-width. */ max_width = -1; } @@ -2048,7 +2048,7 @@ compute_image_size (size_t width, size_t height, int_value = image_get_dimension (img, QCheight); if (int_value >= 0) { - desired_height = int_value; + desired_height = int_value * scale; /* :height overrides :max-height. */ max_height = -1; } -- 2.29.2