Skip to content

Commit

Permalink
Rename to drawSingleChannelTexture.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric BAIL committed Feb 15, 2023
1 parent c952822 commit 8136be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/painter/gl/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ func (p *painter) drawText(text *canvas.Text, pos fyne.Position, frame fyne.Size

// text size is sensitive to position on screen
size, _ = roundToPixelCoords(size, text.Position(), p.pixScale)
p.drawGrayTexture(text, p.newGlTextTexture, pos, size, frame, color, 0)
p.drawSingleChannelTexture(text, p.newGlTextTexture, pos, size, frame, color, 0)
}

func (p *painter) drawGrayTexture(o fyne.CanvasObject, creator func(canvasObject fyne.CanvasObject) Texture,
func (p *painter) drawSingleChannelTexture(o fyne.CanvasObject, creator func(canvasObject fyne.CanvasObject) Texture,
pos fyne.Position, size, frame fyne.Size, c color.Color, pad float32) {
texture, err := p.getTexture(o, creator)
if err != nil {
Expand Down

0 comments on commit 8136be1

Please sign in to comment.