summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-11-05 09:11:50 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-11-05 09:12:46 +0100
commit23509b6fd3469a2cc38fe432c153cbcab278eb3e (patch)
tree34c43f28948acbac34b0f8f8ec96640ab2647f2f /corfu.el
parent94d95d2347ecfef6c65d0c03a9073de060b7c1c3 (diff)
Expand comment regarding HDPi systems
Diffstat (limited to 'corfu.el')
-rw-r--r--corfu.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/corfu.el b/corfu.el
index 0786e38..52fe631 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1016,8 +1016,11 @@ A scroll bar is displayed from LO to LO+BAR."
(with-current-buffer (corfu--make-buffer " *corfu*")
(let* ((ch (default-line-height))
(cw (default-font-width))
- ;; Even for larger fringes, fringe bitmaps can only have a width
- ;; between 1 and 16. Therefore restrict the fringe width to 16.
+ ;; NOTE: Even for larger fringes, fringe bitmaps can only have a
+ ;; width between 1 and 16. Therefore we restrict the fringe width
+ ;; to 16 pixel. This restriction may cause problem on HDPi systems.
+ ;; Hopefully Emacs will adopt larger fringe bitmaps in the future
+ ;; and lift the 16 pixel restriction.
(ml (min 16 (ceiling (* cw corfu-left-margin-width))))
(mr (min 16 (ceiling (* cw corfu-right-margin-width))))
(bw (min mr (ceiling (* cw corfu-bar-width))))