From ca86b961f2dae3904d52d16f071b577e73cdfa15 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Wed, 26 Apr 2017 15:11:12 +0200
Subject: [PATCH] fix compiler error (ouch)

---
 data.go | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/data.go b/data.go
index 11c7348..5b095f8 100644
--- a/data.go
+++ b/data.go
@@ -212,7 +212,13 @@ func PictureDataFromPicture(pic Picture) *PictureData {
 					math.Max(x, bounds.Min.X()),
 					math.Max(y, bounds.Min.Y()),
 				)
-				pd.SetColor(at, pic.Color(at))
+				col := pic.Color(at)
+				pd.Pix[pd.Index(at)] = color.RGBA{
+					R: uint8(col.R * 255),
+					G: uint8(col.G * 255),
+					B: uint8(col.B * 255),
+					A: uint8(col.A * 255),
+				}
 			}
 		}
 	}
-- 
GitLab