Fix icon sizes

This commit is contained in:
Sasha Koshka 2024-08-12 22:06:06 -04:00
parent 5a32b06cef
commit 8068036219

View File

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