diff --git a/icon.go b/icon.go index fddcaa2..1500c6f 100644 --- a/icon.go +++ b/icon.go @@ -33,6 +33,7 @@ func NewIcon (icon tomo.Icon, size tomo.IconSize) *Icon { func (this *Icon) SetIcon (icon tomo.Icon, size tomo.IconSize) { if this.icon == icon { return } this.icon = icon + this.size = size this.setTexture(icon.Texture(size)) }