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:
Nigel Tao 2010-05-28 12:59:38 -07:00
parent 5836d0e202
commit 638bb958f7

View File

@ -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.