Compare commits
No commits in common. "a64c27953a7f49515a169403f57d7774855111fd" and "79f81688bb1c627e87fd71d8ee3263e462b2d920" have entirely different histories.
a64c27953a
...
79f81688bb
1
box.go
1
box.go
@ -117,7 +117,6 @@ func (this *box) SetColor (c color.Color) {
|
||||
}
|
||||
|
||||
func (this *box) SetTexture (texture canvas.Texture) {
|
||||
if this.texture == texture { return }
|
||||
this.texture = xcanvas.AssertTexture(texture)
|
||||
this.invalidateDraw()
|
||||
}
|
||||
|
@ -31,13 +31,11 @@ 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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user