提交 23cf3c9a 编写于 作者: M Maksim Kochkin

Change alpha max value from 1<<32-1 to 1<<16-1

Looks like since https://github.com/golang/freetype/commit/8a4428169df5c9ec333fbda61dca6b830cb47d66 you forget to change this in MonochromePainter
上级 f29eb116
......@@ -197,7 +197,7 @@ func (m *MonochromePainter) Paint(ss []Span, done bool) {
if m.y == s.Y && m.x1 == s.X0 {
m.x1 = s.X1
} else {
ss[j] = Span{m.y, m.x0, m.x1, 1<<32 - 1}
ss[j] = Span{m.y, m.x0, m.x1, 1<<16 - 1}
j++
m.y, m.x0, m.x1 = s.Y, s.X0, s.X1
}
......@@ -205,7 +205,7 @@ func (m *MonochromePainter) Paint(ss []Span, done bool) {
}
if done {
// Flush the accumulated Span.
finalSpan := Span{m.y, m.x0, m.x1, 1<<32 - 1}
finalSpan := Span{m.y, m.x0, m.x1, 1<<16 - 1}
if j < len(ss) {
ss[j] = finalSpan
j++
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册