From 3579be2d833d98c06ca97b55dcede5cc1adfb671 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Wed, 25 Jan 2017 22:32:02 +0100
Subject: [PATCH] minor change in code

---
 graphics.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/graphics.go b/graphics.go
index 1f9fadd..d9a46d5 100644
--- a/graphics.go
+++ b/graphics.go
@@ -166,8 +166,8 @@ func (td *TrianglesDrawer) Dirty() {
 // Sprite is a picture that can be drawn onto a Target. To change the position/rotation/scale of
 // the Sprite, use Target's SetTransform method.
 type Sprite struct {
-	td   TrianglesDrawer
 	data TrianglesData
+	td   TrianglesDrawer
 	pic  *Picture
 }
 
@@ -219,8 +219,8 @@ func (s *Sprite) Draw(t Target) {
 
 // Polygon is a convex polygon shape filled with a single color.
 type Polygon struct {
-	td   TrianglesDrawer
 	data TrianglesData
+	td   TrianglesDrawer
 	col  NRGBA
 }
 
-- 
GitLab