api: set pixel size to one on broken resolutions

This commit is contained in:
shagu
2020-05-27 21:52:32 +02:00
parent 5e7d21ee24
commit cffaf70fbb
+1
View File
@@ -879,6 +879,7 @@ function pfUI.api.GetPerfectPixel()
local _, _, screenwidth, screenheight = strfind(resolution, "(.+)x(.+)")
pfUI.pixel = 768 / screenheight / scale
pfUI.pixel = pfUI.pixel > 1 and 1
-- autodetect and zoom for HiDPI displays
if pfUI_config.appearance.border.hidpi == "1" then