From faa75b6c5b97c8338dcc2d405900be7ed6e55571 Mon Sep 17 00:00:00 2001 From: Alex Chirila Date: Thu, 19 Oct 2017 09:18:40 +0300 Subject: [PATCH] Updated functions to display 32:9 ratios --- Source/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/functions.php b/Source/functions.php index 052d7f17..ff26fe36 100644 --- a/Source/functions.php +++ b/Source/functions.php @@ -19,7 +19,7 @@ function simplify($num,$den) { function get_title($width, $height) { $title = $width . "x" . $height; $ratio = simplify($width, $height); - if ($ratio[0] != 16 && $ratio[1] != 9) { + if (!($ratio[0] == 16 && $ratio[1] == 9)) { if ($ratio[0] == 64 && $ratio[1] == 27) { // 64:27 is the true ratio, but 21:9 is the common approximation $title = $title . " (21:9)";