only apply silly colors to black backgrounds

pull/232/head
Simon Roberts 3 years ago
parent 779638fc76
commit 9750b6ea6d
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4

@ -154,8 +154,10 @@ func (g *Gui) SetRune(x, y int, ch rune, fgColor, bgColor Attribute) error {
if x < 0 || y < 0 || x >= g.maxX || y >= g.maxY {
return errors.New("invalid point")
}
// st := g.MkStyle(fgColor, bgColor)
st := g.prettyColor(x, y, fgColor, bgColor)
st := g.MkStyle(fgColor, bgColor)
if bgColor == ColorBlack {
st = g.prettyColor(x, y, fgColor, bgColor)
}
return g.SetRuneNew(x, y, ch, st)
}

Loading…
Cancel
Save