Skip to content

Commit

Permalink
Revert "Scale shadow offset by the frame scale, since 8.2 the offset …
Browse files Browse the repository at this point in the history
…is apparently specified in pixel directly"

This reverts commit c0dfdb1.

This should not affect classic, yet.
  • Loading branch information
Nevcairiel committed Aug 14, 2019
1 parent b01e3b5 commit 0a225c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,7 @@ function Layout:SetupFontString(fontString, extraSize)

if( ShadowUF.db.profile.font.shadowColor and ShadowUF.db.profile.font.shadowX and ShadowUF.db.profile.font.shadowY ) then
fontString:SetShadowColor(ShadowUF.db.profile.font.shadowColor.r, ShadowUF.db.profile.font.shadowColor.g, ShadowUF.db.profile.font.shadowColor.b, ShadowUF.db.profile.font.shadowColor.a)
local scale = fontString:GetEffectiveScale()
local x, y = ShadowUF.db.profile.font.shadowX * scale, ShadowUF.db.profile.font.shadowY * scale
fontString:SetShadowOffset(x, y)
fontString:SetShadowOffset(ShadowUF.db.profile.font.shadowX, ShadowUF.db.profile.font.shadowY)
else
fontString:SetShadowColor(0, 0, 0, 0)
fontString:SetShadowOffset(0, 0)
Expand Down

0 comments on commit 0a225c3

Please sign in to comment.