Fix an error when overriding the colors of an input widget
This commit is contained in:
parent
f02976d969
commit
a4779092c1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue