Skip to content

Commit 876b630

Browse files
gofmt and image size change on window resize
1 parent 421aa5c commit 876b630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exp/util/drawText.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewText(images *glutil.Images) *Text {
4848
func (t *Text) Draw(sz size.Event, x, y int, scaleX, scaleY geom.Pt, s string) {
4949
if sz.WidthPx == 0 && sz.HeightPx == 0 {
5050
return
51-
} else if t.m == nil {
51+
} else if t.sz != sz {
5252
t.sz = sz
5353
if t.m != nil {
5454
t.m.Release()

0 commit comments

Comments
 (0)