summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/button.go b/button.go
index b5e02a6..380fdd1 100644
--- a/button.go
+++ b/button.go
@@ -61,14 +61,14 @@ func (b *Button) make(window *sysData) error {
return nil
}
-func (b *Button) setRect(x int, y int, width int, height int) []resizerequest {
- return []resizerequest{resizerequest{
+func (b *Button) setRect(x int, y int, width int, height int, rr *[]resizerequest) {
+ *rr = append(*rr, resizerequest{
sysData: b.sysData,
x: x,
y: y,
width: width,
height: height,
- }}
+ })
}
func (b *Button) preferredSize() (width int, height int) {