emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/svg-clock c8fc54f 12/18: Pick the right size when on a


From: Stefan Monnier
Subject: [elpa] externals/svg-clock c8fc54f 12/18: Pick the right size when on a scaled display
Date: Tue, 1 Dec 2020 17:26:03 -0500 (EST)

branch: externals/svg-clock
commit c8fc54fba1bc9d0b23758e3d2b956120e1c9cd3c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Pick the right size when on a scaled display
---
 svg-clock.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/svg-clock.el b/svg-clock.el
index a42e0af..c47498b 100644
--- a/svg-clock.el
+++ b/svg-clock.el
@@ -154,7 +154,7 @@ its colors are FOREGROUND and BACKGROUND."
       (if clock-win
           (let* ((coords (window-inside-pixel-edges clock-win))
                  (width (- (nth 2 coords) (nth 0 coords)))
-               (height (- (nth 3 coords) (nth 1 coords))))
+                (height (- (nth 3 coords) (nth 1 coords))))
             (min width height))
         ;; fallback
         100))))
@@ -193,7 +193,8 @@ BACKGROUND and OFFSET."
                                  (svg-print svg)
                                  (buffer-string))
                                'svg t
-                               :ascent 'center)))
+                               :ascent 'center
+                              :scale 1)))
                     (overlay-put ovl 'display img))))
             ;; clock or its buffer is gone
             (signal 'error nil))



reply via email to

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