Freetype-Go: image.Color.RGBA now returns 16 bit color instead of
32 bit. R=rsc CC=golang-dev http://codereview.appspot.com/1389041
This commit is contained in:
parent
5836d0e202
commit
638bb958f7
1 changed files with 0 additions and 4 deletions
|
@ -136,10 +136,6 @@ func (r *RGBAPainter) Paint(ss []Span, done bool) {
|
|||
// SetColor sets the color to paint the spans.
|
||||
func (r *RGBAPainter) SetColor(c image.Color) {
|
||||
r.cr, r.cg, r.cb, r.ca = c.RGBA()
|
||||
r.cr >>= 16
|
||||
r.cg >>= 16
|
||||
r.cb >>= 16
|
||||
r.ca >>= 16
|
||||
}
|
||||
|
||||
// NewRGBAPainter creates a new RGBAPainter for the given image.
|
||||
|
|
Loading…
Reference in a new issue