summaryrefslogtreecommitdiff
path: root/yz_repaint_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-02 10:05:53 -0400
committerPietro Gagliardi <[email protected]>2014-10-02 10:05:53 -0400
commit982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch)
tree517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /yz_repaint_test.go
parent09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff)
go fmt. Precursor to bug report filing.
Diffstat (limited to 'yz_repaint_test.go')
-rw-r--r--yz_repaint_test.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/yz_repaint_test.go b/yz_repaint_test.go
index c996abf..8fca64b 100644
--- a/yz_repaint_test.go
+++ b/yz_repaint_test.go
@@ -10,20 +10,20 @@ import (
)
type repainter struct {
- img *image.RGBA
- area Area
- x TextField
- y TextField
- width TextField
- height TextField
- repaint Button
- all Button
- grid Grid
+ img *image.RGBA
+ area Area
+ x TextField
+ y TextField
+ width TextField
+ height TextField
+ repaint Button
+ all Button
+ grid Grid
- xv int
- yv int
- wv int
- hv int
+ xv int
+ yv int
+ wv int
+ hv int
}
func newRepainter(times int) *repainter {
@@ -55,7 +55,7 @@ func newRepainter(times int) *repainter {
return r
}
-func (r *repainter) Paint(rect image.Rectangle) *image.RGBA {
+func (r *repainter) Paint(rect image.Rectangle) *image.RGBA {
return r.img.SubImage(rect).(*image.RGBA)
}
@@ -116,7 +116,7 @@ func (r *repainter) alter(rect image.Rectangle, c color.Color) {
}
func (r *repainter) dorect() {
- rect := image.Rect(r.xv, r.yv, r.xv + r.wv, r.yv + r.hv)
+ rect := image.Rect(r.xv, r.yv, r.xv+r.wv, r.yv+r.hv)
r.alter(rect, color.RGBA{255, 0, 255, 128})
r.area.Repaint(rect)
}