emacs-devel
[Top][All Lists]
Advanced

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

exposing x_get_scale_factor into elisp level


From: Evgeny Zajcev
Subject: exposing x_get_scale_factor into elisp level
Date: Mon, 22 Mar 2021 02:07:41 +0300

HiDPI is very common nowadays.  Internally Emacs has decent support for HiDPI displays.  However elisp code, that generates non-svg images don't have any idea that logical pixel may differ from physical one, resulting in generating images in low resolution on HiDPI displays.

Emacs internally has a notion about HiDPI displays, such as `x_get_scale_factor`, maybe expose this function to elisp level, so packages may utilize it to generate images in highres?

Or `(> (round (/ (display-pixel-height) (/ (display-mm-height) 25.4))) 96)` is good enough to detect HiDPI displays?

Thanks

--
lg

reply via email to

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