Skip to content

Commit

Permalink
And fix wobbling text report
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Dec 19, 2022
1 parent 59e956e commit 45f0dc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/painter/gl/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ func (p *painter) drawText(text *canvas.Text, pos fyne.Position, frame fyne.Size
pos = fyne.NewPos(pos.X, pos.Y+(containerSize.Height-size.Height)/2)
}

// text size is sensitive to position on screen
size, _ = roundToPixelCoords(size, text.Position(), p.pixScale)
p.drawTextureWithDetails(text, p.newGlTextTexture, pos, size, frame, canvas.ImageFillStretch, 1.0, 0)
}

Expand Down

0 comments on commit 45f0dc6

Please sign in to comment.