mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 11:40:01 +00:00
api: use old pixel value on non broken resolutions
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user