From eb42c831fca4a82d7611d50dea34227536d607c6 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 5 Mar 2020 22:52:56 +0100 Subject: [PATCH] api: fix real pixel backdrop offsets --- api/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.lua b/api/api.lua index a7f4406a..93fe1018 100644 --- a/api/api.lua +++ b/api/api.lua @@ -863,8 +863,8 @@ function pfUI.api.CreateBackdrop(f, inset, legacy, transp, backdropSetting) -- load custom border if existing if inset then - rawborder = inset - border = inset * GetPerfectPixel() + rawborder = inset / GetPerfectPixel() + border = inset end -- get the color settings