summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-09 22:11:08 -0400
committerPietro Gagliardi <[email protected]>2014-06-09 22:11:08 -0400
commitfa4094adeb122ea23cc898da75421230d7b7eda1 (patch)
tree1f602ec687dfa8ef0fc051265728b3f448b32693 /sysdata_darwin.go
parent6b860779e357560266553b298af5f4863f511aa7 (diff)
Added Area.RepaintAll() (requested by aybabtme on the Gopher Academy Slack) and implemented it on Mac OS X.
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index 72a5519..d0e9b16 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -402,3 +402,13 @@ func (s *sysData) setAreaSize(width int, height int) {
}
<-ret
}
+
+func (s *sysData) repaintAll() {
+ ret := make(chan struct{})
+ defer close(ret)
+ uitask <- func() {
+ C.display(s.id)
+ ret <- struct{}{}
+ }
+ <-ret
+}