diff options
Diffstat (limited to 'lib/ui/invalidatable.go')
-rw-r--r-- | lib/ui/invalidatable.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/ui/invalidatable.go b/lib/ui/invalidatable.go index 92757121..fc354bde 100644 --- a/lib/ui/invalidatable.go +++ b/lib/ui/invalidatable.go @@ -13,12 +13,5 @@ func (i *Invalidatable) OnInvalidate(f func(d Drawable)) { } func (i *Invalidatable) DoInvalidate(d Drawable) { - v := i.onInvalidate.Load() - if v == nil { - return - } - f := v.(func(d Drawable)) - if f != nil { - f(d) - } + atomic.StoreInt32(&dirty, DIRTY) } |