From 1421a9f65ffddad75a03f656c312df9cebff44c0 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 6 Mar 2025 17:53:43 +0100 Subject: [PATCH] ply-utils: Increase threshold for guessed hiDPI scaling to >= 2880x1620 1440 is only 33% more then FHD, so using 2x there is a bit too much and leads to the spinner being much too large on e.g 27" monitors. And on e.g. Dell ultrawide 34" 3440x1440 which are only 110 DPI this effect is even worse. Change the threshold to >= 2880x1620 to avoid using 2x scaling on 1440p monitors. 2880x1620 is ~240DPI when used in a 14" laptop at which point using 2x scaling is really necessary. Signed-off-by: Hans de Goede --- src/libply/ply-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 2de2e87c..6fa64975 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -1048,8 +1048,8 @@ get_device_scale_guess (uint32_t width, return (width >= 1800 && height >= 1200) ? 2 : 1; - return (width >= 2560 && - height >= 1200) ? 2 : 1; + return (width >= 2880 && + height >= 1620) ? 2 : 1; } static int -- 2.47.3