mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-07 12:41:56 +00:00
* lisp/frame.el (display-planes): Use logb over truncate + log
Suggested by Basil L. Contovounesios: https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-03/msg01052.html
This commit is contained in:
parent
b68405405e
commit
0c16bb5a39
@ -2093,7 +2093,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display."
|
||||
((eq frame-type 'pc)
|
||||
4)
|
||||
(t
|
||||
(truncate (log (length (tty-color-alist)) 2))))))
|
||||
(logb (length (tty-color-alist)))))))
|
||||
|
||||
(declare-function x-display-color-cells "xfns.c" (&optional terminal))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user