Fix (7:3) bug

This commit is contained in:
Michael 2017-12-17 19:55:58 -08:00
parent f7e5979474
commit 4e107a7dcb

View File

@ -26,6 +26,9 @@ function get_title($width, $height) {
} else if ($ratio[0] == 43 && $ratio[1] == 18) {
// 43:18 is the true ratio for 3440x1440, but 21:9 is the common approximation
$title = $title . " (21:9)";
} else if ($ratio[0] == 7 && $ratio[1] == 3) {
// 2100x900 and 4200x1800 are actual 21:9 (21*100 and 9*100) but for some reason it calculates to 7:3?
$title = $title . " (21:9)";
} else if ($ratio[0] == 8 && $ratio[1] == 5) {
// common sense
$title = $title . " (16:10)";