mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-03-14 06:20:31 +01:00
ply-utils: Only choose scale 2 when the perfect scale would be >= 1.75
This is the intended design documented in: https://gitlab.gnome.org/GNOME/mutter/-/commit/d03dce43786d And discussed in: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3616
This commit is contained in:
parent
4dc3a5ba0c
commit
3b8e918479
1 changed files with 1 additions and 1 deletions
|
|
@ -1057,7 +1057,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.5f) ? 2 : 1;
|
||||
device_scale = (perfect_scale >= 1.75f) ? 2 : 1;
|
||||
|
||||
return device_scale;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue