diff --git a/containerbox.go b/containerbox.go index 96c27b4..4c37f92 100644 --- a/containerbox.go +++ b/containerbox.go @@ -31,11 +31,13 @@ func (backend *Backend) NewContainerBox() tomo.ContainerBox { } func (this *containerBox) SetColor (c color.Color) { + if this.color == c { return } this.box.SetColor(c) this.invalidateTransparentChildren() } func (this *containerBox) SetTexture (texture canvas.Texture) { + if this.texture == texture { return } this.box.SetTexture(texture) this.invalidateTransparentChildren() }