Don't invalidate ContainerBox's children when something is set

redundantly
This commit is contained in:
Sasha Koshka 2024-05-15 01:18:58 -04:00
parent 8f555f82ee
commit a64c27953a

View File

@ -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()
}