Skip to content

Commit

Permalink
fix incorrect border thickness for LSM border
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Feb 14, 2024
1 parent 0f25058 commit 0a913c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ClassicCastbars/core/Frames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,14 @@ function ClassicCastbars:SetLSMBorders(castbar, db)
end

-- Apply backdrop if it isn't already active
if castbar.BorderFrameLSM.currentTexture ~= db.castBorder or castbar:GetHeight() ~= castbar.BorderFrameLSM.currentHeight then
if castbar.BorderFrameLSM.currentTexture ~= db.castBorder then
castbar.BorderFrameLSM:SetBackdrop({
edgeFile = db.castBorder,
tile = false, tileSize = 0,
edgeSize = castbar:GetHeight(),
tile = true, tileSize = 16,
edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 }
})
castbar.BorderFrameLSM.currentTexture = db.castBorder
castbar.BorderFrameLSM.currentHeight = castbar:GetHeight()
end

castbar.Border:SetAlpha(0) -- hide default border
Expand Down

0 comments on commit 0a913c0

Please sign in to comment.