Skip to content

Commit

Permalink
Minimap should lock correctly to ElvUI Minimap
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazza committed Jun 18, 2020
1 parent dc63bdc commit a009cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/MinimapIcon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ local function createMinimapIcon()
local minimapShape = _G.GetMinimapShape and _G.GetMinimapShape() or 'ROUND';
-- borrowed from LibDBIcon-1.0
local quadTable = minimapShapes[minimapShape]
local w = (_G.Minimap:GetWidth() / 2) + self:GetWidth() / 4
local h = (_G.Minimap:GetHeight() / 2) + self:GetWidth() / 4
local w = (_G.Minimap:GetWidth() / 2) + 5
local h = (_G.Minimap:GetHeight() / 2) + 5
if quadTable[q] then
x, y = x*w, y*h
else
Expand Down

0 comments on commit a009cb9

Please sign in to comment.