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