From 638bb958f702a51ec3515796f6c01dffef8e6ce0 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Fri, 28 May 2010 12:59:38 -0700 Subject: [PATCH] Freetype-Go: image.Color.RGBA now returns 16 bit color instead of 32 bit. R=rsc CC=golang-dev http://codereview.appspot.com/1389041 --- freetype/raster/paint.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/freetype/raster/paint.go b/freetype/raster/paint.go index ed06da8..4f89f62 100644 --- a/freetype/raster/paint.go +++ b/freetype/raster/paint.go @@ -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.