From 33fc35f58db8b16b3180be12486776d9842f3a63 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 2 Jul 2019 14:56:48 +0200 Subject: [PATCH] ui/draw: switch to color.RGBA for colors Signed-off-by: Elias Naur --- ui/app/internal/gpu/gpu.go | 2 +- ui/draw/draw.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/internal/gpu/gpu.go b/ui/app/internal/gpu/gpu.go index 61d79e62..15c33054 100644 --- a/ui/app/internal/gpu/gpu.go +++ b/ui/app/internal/gpu/gpu.go @@ -82,7 +82,7 @@ type drawState struct { img image.Image imgRect image.Rectangle // Current ColorOp, if any. - color color.NRGBA + color color.RGBA } type pathOp struct { diff --git a/ui/draw/draw.go b/ui/draw/draw.go index 23b42f39..ca12ff38 100644 --- a/ui/draw/draw.go +++ b/ui/draw/draw.go @@ -19,7 +19,7 @@ type ImageOp struct { } type ColorOp struct { - Col color.NRGBA + Col color.RGBA } type DrawOp struct { @@ -73,7 +73,7 @@ func (c *ColorOp) Decode(data []byte, refs []interface{}) { panic("invalid op") } *c = ColorOp{ - Col: color.NRGBA{ + Col: color.RGBA{ R: data[1], G: data[2], B: data[3],