Merge pull request #6499 from Tatsuya79/patch-1

Make MUI auto dpi a bit bigger for low dpi phones
This commit is contained in:
Twinaphex 2018-03-30 15:47:17 +02:00 committed by GitHub
commit 0ff5631649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,7 +551,9 @@ float menu_display_get_dpi(void)
if (!settings)
return true;
dpi = sqrt((width * width) + (height * height)) / 6.5;
/* Generic dpi calculation formula,
* the divider is the screen diagonal in inches */
dpi = sqrt((width * width) + (height * height)) / 5;
if (settings->bools.menu_dpi_override_enable)
return settings->uints.menu_dpi_override_value;