]> git.ipfire.org Git - thirdparty/plymouth.git/commit
drm: Add simpledrm HiDPI display support
authorJanne Grunau <j@jannau.net>
Sat, 17 May 2025 06:57:06 +0000 (08:57 +0200)
committerJanne Grunau <j@jannau.net>
Sun, 13 Jul 2025 20:55:17 +0000 (22:55 +0200)
commit6780124665d4df9c6e178a60bd80f1a4bd1f7112
treeec292dcd63ba9b280603c2f21a10a0708b2f60b5
parent992870da8a5e044ad06fa3cdb5193eab3d516940
drm: Add simpledrm HiDPI display support

For devicetree based systems simpledrm might know the actual physical
display dimensions. Test if the reported connector width and height
result in a pixel density larger than 96 DPI. If that's the case
calculate the device scale instead of guessing it based on the
resolution.
This restores HiDPI scaling on 13-inch Apple silicon Macbooks with a
resolution of 2560x1600 (224 - 227 DPI) after commit 1421a9f6
("ply-utils: Increase threshold for guessed hiDPI scaling
to >= 2880x1620").

Signed-off-by: Janne Grunau <j@jannau.net>
src/libply/ply-utils.c
src/libply/ply-utils.h
src/plugins/renderers/drm/plugin.c