emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c7555f0: Fix :scale's affect on :width and :height (bug#47819)


From: Alan Third
Subject: master c7555f0: Fix :scale's affect on :width and :height (bug#47819)
Date: Sat, 17 Apr 2021 04:42:00 -0400 (EDT)

branch: master
commit c7555f037ae7194fc331fb65c34c280680028b80
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    Fix :scale's affect on :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 1619886..ff4ef01 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;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]