Skip to content

Commit

Permalink
Fix initial image show bug for certain fill types
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Dec 12, 2019
1 parent bf6e304 commit 8dc4bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/painter/gl/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func (p *glPainter) drawLine(line *canvas.Line, pos fyne.Position, frame fyne.Si

func (p *glPainter) drawImage(img *canvas.Image, pos fyne.Position, frame fyne.Size) {
aspect := painter.GetAspect(img)
if aspect == 0 {
aspect = 1
}
p.drawTextureWithDetails(img, p.newGlImageTexture, pos, img.Size(), frame, img.FillMode, float32(img.Alpha()), aspect, 0)
}

Expand Down

0 comments on commit 8dc4bcc

Please sign in to comment.