examples/blocks: Bug fix: applying ColorM (#356)

This commit is contained in:
Hajime Hoshi 2017-05-29 22:46:15 +09:00
parent fb65fe1fee
commit 8e1d3a151e

View File

@ -157,6 +157,7 @@ const (
func drawBlocks(r *ebiten.Image, blocks [][]BlockType, x, y int, clr ebiten.ColorM) {
op := &ebiten.DrawImageOptions{}
op.ColorM = clr
for j := 0; j < len(blocks[0]); j++ {
for i := 0; i < len(blocks); i++ {
op.GeoM.Reset()