From 4374bb7be10a109ba610af087cb6557a6a7041bb Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Mon, 10 Apr 2017 00:47:06 +0200
Subject: [PATCH] remove smooth argument from Canvas constructor

---
 pixelgl/canvas.go | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/pixelgl/canvas.go b/pixelgl/canvas.go
index eecc1a1..5ebe5bf 100644
--- a/pixelgl/canvas.go
+++ b/pixelgl/canvas.go
@@ -27,14 +27,12 @@ type Canvas struct {
 
 var _ pixel.ComposeTarget = (*Canvas)(nil)
 
-// NewCanvas creates a new empty, fully transparent Canvas with given bounds. If the smooth flag is
-// set, then stretched Pictures will be smoothed and will not be drawn pixely onto this Canvas.
-func NewCanvas(bounds pixel.Rect, smooth bool) *Canvas {
+// NewCanvas creates a new empty, fully transparent Canvas with given bounds.
+func NewCanvas(bounds pixel.Rect) *Canvas {
 	c := &Canvas{
-		gf:     NewGLFrame(bounds),
-		mat:    mgl32.Ident3(),
-		col:    mgl32.Vec4{1, 1, 1, 1},
-		smooth: smooth,
+		gf:  NewGLFrame(bounds),
+		mat: mgl32.Ident3(),
+		col: mgl32.Vec4{1, 1, 1, 1},
 	}
 
 	c.SetBounds(bounds)
-- 
GitLab