From e2acea9d73cc717786b083008cb44441ef487299 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 3 Apr 2023 17:33:12 +0200 Subject: bump ebiten version to 2.5.1 and new APIs --- go/ui/mapView.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'go/ui/mapView.go') diff --git a/go/ui/mapView.go b/go/ui/mapView.go index 721356ff..59e8f3a7 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -132,7 +132,7 @@ func (vw *MapView) drawMapLayer(screen *ebiten.Image) { op.GeoM.Translate(x_px, y_px) if color, found := vw.tileHighlights[pos]; found { - op.ColorM.ScaleWithColor(color) + op.ColorScale.ScaleWithColor(color) } vw.mapLayer.DrawImage(tileImg, op) @@ -176,10 +176,10 @@ func (vw *MapView) drawPermanentsLayer(screen *ebiten.Image) { op := &ebiten.DrawImageOptions{} op.GeoM.Translate(float64(x_px), float64(y_px)) - op.ColorM.ScaleWithColor(p.Controller().Color) + op.ColorScale.ScaleWithColor(p.Controller().Color) if color, found := vw.permanentsHighlights[p]; found { - op.ColorM.ScaleWithColor(color) + op.ColorScale.ScaleWithColor(color) } vw.permanentsLayer.DrawImage(permanentSymbol, op) -- cgit v1.2.3