Compare commits

..

No commits in common. "a64c27953a7f49515a169403f57d7774855111fd" and "79f81688bb1c627e87fd71d8ee3263e462b2d920" have entirely different histories.

2 changed files with 0 additions and 3 deletions

1
box.go
View File

@ -117,7 +117,6 @@ func (this *box) SetColor (c color.Color) {
} }
func (this *box) SetTexture (texture canvas.Texture) { func (this *box) SetTexture (texture canvas.Texture) {
if this.texture == texture { return }
this.texture = xcanvas.AssertTexture(texture) this.texture = xcanvas.AssertTexture(texture)
this.invalidateDraw() this.invalidateDraw()
} }

View File

@ -31,13 +31,11 @@ func (backend *Backend) NewContainerBox() tomo.ContainerBox {
} }
func (this *containerBox) SetColor (c color.Color) { func (this *containerBox) SetColor (c color.Color) {
if this.color == c { return }
this.box.SetColor(c) this.box.SetColor(c)
this.invalidateTransparentChildren() this.invalidateTransparentChildren()
} }
func (this *containerBox) SetTexture (texture canvas.Texture) { func (this *containerBox) SetTexture (texture canvas.Texture) {
if this.texture == texture { return }
this.box.SetTexture(texture) this.box.SetTexture(texture)
this.invalidateTransparentChildren() this.invalidateTransparentChildren()
} }