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

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

[elpa] master d111f3c 2/3: Pick the right size when on a scaled display


From: Lars Ingebrigtsen
Subject: [elpa] master d111f3c 2/3: Pick the right size when on a scaled display
Date: Mon, 4 Nov 2019 14:38:37 -0500 (EST)

branch: master
commit d111f3cc83adf419e3e0d029ac2a8c0f6cf09bc0
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

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

diff --git a/packages/svg-clock/svg-clock.el b/packages/svg-clock/svg-clock.el
index a42e0af..c47498b 100644
--- a/packages/svg-clock/svg-clock.el
+++ b/packages/svg-clock/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]