Remove unneeded local

This commit is contained in:
Matthias Richter 2017-03-16 20:29:04 +01:00
parent 727c925f1b
commit d12ffe9295

View file

@ -19,7 +19,7 @@ function theme.getColorForState(opt)
end end
function theme.drawBox(x,y,w,h, colors, cornerRadius) function theme.drawBox(x,y,w,h, colors, cornerRadius)
local colors = colors or theme.getColorForState(opt) colors = colors or theme.getColorForState(opt)
cornerRadius = cornerRadius or theme.cornerRadius cornerRadius = cornerRadius or theme.cornerRadius
w = math.max(cornerRadius/2, w) w = math.max(cornerRadius/2, w)
if h < cornerRadius/2 then if h < cornerRadius/2 then