mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 21:18:05 +02:00
Merge branch 'lower_hidpi_cutoff_value' into 'main'
ply-utils: Adjust HiDPI cut-off value to 1.625f See merge request plymouth/plymouth!349
This commit is contained in:
commit
992870da8a
1 changed files with 1 additions and 1 deletions
|
|
@ -1086,7 +1086,7 @@ get_device_scale (uint32_t width,
|
|||
target_dpi = (diag_inches >= 20.f) ? 110 : 135;
|
||||
|
||||
perfect_scale = physical_dpi / target_dpi;
|
||||
device_scale = (perfect_scale >= 1.75f) ? 2 : 1;
|
||||
device_scale = (perfect_scale > 1.625f) ? 2 : 1;
|
||||
|
||||
return device_scale;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue