Fix an error when overriding the colors of an input widget

This commit is contained in:
Andrew Minnich 2016-03-05 16:44:16 -05:00
parent f02976d969
commit a4779092c1

View file

@ -112,7 +112,7 @@ function theme.Input(input, opt, x,y,w,h)
x = x - input.text_draw_offset
-- text
love.graphics.setColor(opt.color and opt.color.normal or theme.color.normal.fg)
love.graphics.setColor(opt.color and opt.color.normal.fg or theme.color.normal.fg)
love.graphics.setFont(opt.font)
love.graphics.print(input.text, x, y+(h-th)/2)