Verified Commit 735c85f4 authored by Simpy's avatar Simpy 🐹

boop, looking at the c-stack error

parent df8dbc12
......@@ -47,14 +47,13 @@ local function customSetBackdrop(frame, giveBorder, bgFile, edgeSize, insetLeft,
frame.pixelBorders.RIGHT:SetWidth(edgeSize)
end
local function customSetBackdropColor(frame, r, g, b, a, skip)
if skip == 'ElvUI' then return end
if frame.pixelBorders then
local function customBackdropColor(frame, r, g, b, a, skip)
if skip == 'ElvUI' then
return
elseif frame.pixelBorders then
frame.pixelBorders.CENTER:SetVertexColor(r, g, b, a)
frame:SetBackdropColor(r, g, b, 0, 'ElvUI')
end
frame:SetBackdropColor(r, g, b, 0, 'ElvUI')
end
local function customBackdropBorderColor(frame, r, g, b, a)
......@@ -101,7 +100,7 @@ local function buildPixelBorders(frame, noSecureHook)
end
if not noSecureHook then
hooksecurefunc(frame, "SetBackdropColor", customSetBackdropColor)
hooksecurefunc(frame, "SetBackdropColor", customBackdropColor)
hooksecurefunc(frame, "SetBackdropBorderColor", customBackdropBorderColor)
end
end
......@@ -196,9 +195,9 @@ local function SetTemplate(f, t, glossTex, ignoreUpdates, forcePixelMode, isUnit
if not f.ignoreBackdropColors then
if t == 'Transparent' then
customSetBackdropColor(f, backdropr, backdropg, backdropb, backdropa)
customBackdropColor(f, backdropr, backdropg, backdropb, backdropa)
else
customSetBackdropColor(f, backdropr, backdropg, backdropb)
customBackdropColor(f, backdropr, backdropg, backdropb)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment