local Texture__index = getmetatable(UIParent:CreateTexture()).__index
if (not Texture__index.SetGradientAlpha) then
Texture__index.SetGradientAlpha = function(self, p, a, b, c, d, e, f, g, h)
self:SetGradient(p, { r = a, g = b, b = c, a = d }, { r = e, g = f, b = g, a = h })
end
end
local function backdrop(self, bd)
Mixin(self, BackdropTemplateMixin)
self:SetBackdrop(bd)
end
local function fix_backdrop(objType)
local __index = getmetatable(CreateFrame(objType)).__index
__index.SetBackdrop = __index.SetBackdrop or backdrop
end
fix_backdrop("frame")
fix_backdrop("gametooltip")