]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
ply-utils: Increase threshold for guessed hiDPI scaling to >= 2880x1620
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Mar 2025 16:53:43 +0000 (17:53 +0100)
committerHans de Goede <jwrdegoede@fedoraproject.org>
Tue, 6 May 2025 11:38:59 +0000 (11:38 +0000)
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 <hdegoede@redhat.com>
src/libply/ply-utils.c

index 2de2e87cebb85ad6096b43bee12b5efbd8a09ad7..6fa649755a2d5edfe8daac7192409148d759d071 100644 (file)
@@ -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