Skip to content

Commit

Permalink
tooltips: fix blinking border
Browse files Browse the repository at this point in the history
fixes #55
  • Loading branch information
sbaildon committed Nov 21, 2020
1 parent ec71e5a commit 6f33a40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/tooltips/tooltips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ local backdrop = { bgFile = "Interface\\Buttons\\WHITE8x8",

local function SetBackdropStyle(self)
self:SetBackdrop(backdrop)
self:SetBackdropColor(unpack(bgColor))
self:SetBackdropBorderColor(1, 1, 1, 0)
self:SetBackdropColor(unpack(bgColor))
end

hooksecurefunc("GameTooltip_UpdateStyle", function(self)
SetBackdropStyle(self)
end)

hooksecurefunc("GameTooltip_SetDefaultAnchor", function(tooltip, parent)
if E:C('tooltips', 'anchor_cursor') then
tooltip:SetOwner(parent, "ANCHOR_CURSOR")
Expand Down

0 comments on commit 6f33a40

Please sign in to comment.