[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 48/51: [gnugo] Fix bug: Compute grid spacing using offset math.
From: |
Thien-Thi Nguyen |
Subject: |
[elpa] 48/51: [gnugo] Fix bug: Compute grid spacing using offset math. |
Date: |
Mon, 24 Feb 2014 12:30:28 +0000 |
ttn pushed a commit to branch master
in repository elpa.
commit fd1fb6d2f588e9f7da7567bb00a42a8e28134ea5
Author: Thien-Thi Nguyen <address@hidden>
Date: Mon Feb 24 13:02:09 2014 +0100
[gnugo] Fix bug: Compute grid spacing using offset math.
OBOE introduced 2006-04-09 (release 2.2.13).
* packages/gnugo/gnugo.el (gnugo-refresh):
Don't use ‘wmul’ directly to compute ‘gspc’;
instead, use one plus the re-derived image pixel-width.
---
packages/gnugo/gnugo.el | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index dc646ef..1dc73ee 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/gnugo.el
@@ -917,7 +917,17 @@ its move."
(under10p 0)
(t 1))))))
(gspc . ,(when imagesp
- `(display (space-width ,(- wmul 1.0)))))
+ `(display
+ (space-width
+ ,(-
+ ;; DWR: image width alone => OBOE!
+ ;;- wmul
+ ;; NB: ‘(* wmul cw)’ is the same
+ ;; as ‘(car (image-size ... t))’.
+ (let ((cw (frame-char-width)))
+ (/ (+ 1.0 (* wmul cw))
+ cw))
+ 1.0)))))
(lpad . ,(let ((d `(display (space :align-to ,w))))
;; We distinguish between these cases to
;; workaround a display bug whereby the
- [elpa] 40/51: [gnugo] Use special constructs for keybindings in docstrings., (continued)
- [elpa] 40/51: [gnugo] Use special constructs for keybindings in docstrings., Thien-Thi Nguyen, 2014/02/24
- [elpa] 21/51: [gnugo gtp int] Use :post-thunk instead of :post-hook., Thien-Thi Nguyen, 2014/02/24
- [elpa] 31/51: [gnugo int] Add abstraction: gnugo--unclose-game, Thien-Thi Nguyen, 2014/02/24
- [elpa] 45/51: [gnugo] New command: ‘ A’ (gnugo-switch-to-another), Thien-Thi Nguyen, 2014/02/24
- [elpa] 42/51: [gnugo int] Use internal macros more., Thien-Thi Nguyen, 2014/02/24
- [elpa] 46/51: [gnugo] New command: ‘ _’ and ‘M-_’ (gnugo-boss-is-near), Thien-Thi Nguyen, 2014/02/24
- [elpa] 43/51: [gnugo maint] Update HACKING; nfc., Thien-Thi Nguyen, 2014/02/24
- [elpa] 50/51: [gnugo maint] Update NEWS, HACKING; nfc., Thien-Thi Nguyen, 2014/02/24
- [elpa] 41/51: [gnugo] Make proc-status change mode-line elem more informative., Thien-Thi Nguyen, 2014/02/24
- [elpa] 47/51: [gnugo maint] Update NEWS; nfc., Thien-Thi Nguyen, 2014/02/24
- [elpa] 48/51: [gnugo] Fix bug: Compute grid spacing using offset math.,
Thien-Thi Nguyen <=
- [elpa] 49/51: [gnugo] Rename var to ‘gnugo-inhibit-refresh’., Thien-Thi Nguyen, 2014/02/24
- [elpa] 51/51: [gnugo] Release: 2.3.0, Thien-Thi Nguyen, 2014/02/24
- [elpa] 44/51: [gnugo] Bind ‘DEL’ t o ‘gnugo-undo-two-moves’., Thien-Thi Nguyen, 2014/02/24