From cffaf70fbbb3cdb20fb5b5d715d504fcca954d45 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 27 May 2020 21:52:32 +0200 Subject: [PATCH] api: set pixel size to one on broken resolutions --- api/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/api/api.lua b/api/api.lua index 666e312b..c8f3b119 100644 --- a/api/api.lua +++ b/api/api.lua @@ -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