WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PhanxConfig-ColorPicker
    from Rev 38 to Rev 40
    Reverse comparison

Rev 38 → Rev 40

PhanxConfig-ColorPicker.lua
41,9 → 41,9
self.r, self.g, self.b = self:GetColor()
else
local r, g, b = self.swatch:GetVertexColor()
r = math.floor(r + 0.05)
b = math.floor(g + 0.05)
b = math.floor(b + 0.05)
r = math.floor(r * 100 + 0.5) / 100
b = math.floor(g * 100 + 0.5) / 100
b = math.floor(b * 100 + 0.5) / 100
self.r, self.g, self.b = r, g, b
end