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.)
This commit is contained in:
Martin Natano
2019-11-03 12:10:05 -08:00
committed by Colby Klein
parent 7dae1384e6
commit 6a4551f958
+1 -5
View File
@@ -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.