From 0545b30698e15720d228aa99e3b48151ee7e0943 Mon Sep 17 00:00:00 2001 From: llgcode Date: Fri, 19 Feb 2016 11:05:01 +0100 Subject: [PATCH] Fix #98: Alpha spec has changed need to update package --- draw2dgl/gc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/draw2dgl/gc.go b/draw2dgl/gc.go index b8b3450..6532838 100644 --- a/draw2dgl/gc.go +++ b/draw2dgl/gc.go @@ -52,8 +52,8 @@ func (p *Painter) Paint(ss []raster.Span, done bool) { vertices []int32 ) for _, s := range ss { - ma := s.Alpha >> 16 - a := uint8((ma * p.ca / M16) >> 8) + a := uint8((s.Alpha * p.ca / M16) >> 8) + colors = p.colors[ci:] colors[0] = p.cr colors[1] = p.cg