api: use old pixel value on non broken resolutions

This commit is contained in:
shagu
2020-05-28 13:34:58 +02:00
parent cffaf70fbb
commit 83ef788d3f
+1 -1
View File
@@ -879,7 +879,7 @@ function pfUI.api.GetPerfectPixel()
local _, _, screenwidth, screenheight = strfind(resolution, "(.+)x(.+)")
pfUI.pixel = 768 / screenheight / scale
pfUI.pixel = pfUI.pixel > 1 and 1
pfUI.pixel = pfUI.pixel > 1 and 1 or pfUI.pixel
-- autodetect and zoom for HiDPI displays
if pfUI_config.appearance.border.hidpi == "1" then