Merge pull request #38 from Matt3o12/gauge-label

Fixed a bug which would render the background color of a label incorrectly.
This commit is contained in:
Zack Guo 2015-04-23 10:20:37 -04:00
commit 0863691428
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func (g *Gauge) Buffer() []Point {
p.Y = pry
p.Ch = v
p.Fg = g.PercentColor
if w > pos+i {
if w+g.innerX > pos+i {
p.Bg = g.BarColor
if p.Bg == ColorDefault {
p.Bg |= AttrReverse