From 6a4551f9589e4dc9e9afcbcf2a8c50e74ea7d427 Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Sun, 3 Nov 2019 21:10:05 +0100 Subject: [PATCH] Detect 8:3 as widescreen (#1929) The IsUsingWideScreen() function only checked 16:10 and 16:9, now we just check that the ratio is greater than 16:10. (Coincidentally that's also what the documentation states about this function.) --- Themes/_fallback/Scripts/02 Utilities.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Themes/_fallback/Scripts/02 Utilities.lua b/Themes/_fallback/Scripts/02 Utilities.lua index 6dd1645549..da1f966b83 100644 --- a/Themes/_fallback/Scripts/02 Utilities.lua +++ b/Themes/_fallback/Scripts/02 Utilities.lua @@ -352,11 +352,7 @@ end function IsUsingWideScreen() local curAspect = GetScreenAspectRatio() - if math.abs(curAspect-16/9) <= .044 or math.abs(curAspect - 16/10) <= .044 then - return true - else - return false - end + return curAspect > 16/10 - .044 end -- Usage: Pass in an ActorFrame and a string to put in front of every line.