From 83ef788d3f283c23fec53e4603d38118d6e04cc5 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 28 May 2020 13:34:58 +0200 Subject: [PATCH] api: use old pixel value on non broken resolutions --- api/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index c8f3b119..26bfdc30 100644 --- a/api/api.lua +++ b/api/api.lua @@ -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