Use new style methods of matrices (ColorM)

This commit is contained in:
Hajime Hoshi 2015-01-05 10:31:48 +09:00
parent 4226354e4a
commit 8145561219

View File

@ -87,9 +87,9 @@ func (s *SceneManager) Draw(r *ebiten.Image) error {
}
alpha := float64(s.transitionCount) / float64(transitionMaxCount)
return r.DrawImage(transitionTo, &ebiten.DrawImageOptions{
ColorM: ebiten.ScaleColor(1, 1, 1, alpha),
})
op := &ebiten.DrawImageOptions{}
op.ColorM.Scale(1, 1, 1, alpha)
return r.DrawImage(transitionTo, op)
}
func (s *SceneManager) GoTo(scene Scene) {