Make MUI auto dpi a bit bigger for low dpi phones

This commit is contained in:
Tatsuya79 2018-03-30 15:44:39 +02:00 committed by GitHub
parent 8acc085dec
commit 74d4e6043a
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;