Fix bar backgrounds not being set to the inverted color on login if the "Invert Bar/Text Colors" setting is on. This wasn't noticable if the bar label color was the default white text with 100% alpha.

This commit is contained in:
Xinhuan
2009-08-09 13:03:09 +08:00
parent 4d8c03b773
commit 46bdf6cc48
+2
View File
@@ -1098,6 +1098,8 @@ do
bar.texture:SetTexture(LSM:Fetch("statusbar", db.Bar.Texture)) bar.texture:SetTexture(LSM:Fetch("statusbar", db.Bar.Texture))
bar.texture:SetPoint("TOPLEFT", bar, "TOPLEFT") bar.texture:SetPoint("TOPLEFT", bar, "TOPLEFT")
bar.texture:SetPoint("BOTTOMLEFT", bar, "BOTTOMLEFT") bar.texture:SetPoint("BOTTOMLEFT", bar, "BOTTOMLEFT")
color = db.Bar.InvertColors and db.Bar.FontColor or db.Bar.BarColor
bar.texture:SetVertexColor(color.r, color.g, color.b, color.a)
bar.animations = {} bar.animations = {}
bar.animationCursor = 0 bar.animationCursor = 0