Skip to content

Commit

Permalink
Some systems don't reset Raster type on resize, but we must
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 30, 2020
1 parent 2d49d88 commit 8f5ebcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions canvas/raster.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ func (r *Raster) Alpha() float64 {
return 1.0 - r.Translucency
}

func (r *Raster) Resize(s fyne.Size) {
r.baseObject.Resize(s)
Refresh(r)
}

// Refresh causes this object to be redrawn in it's current state
func (r *Raster) Refresh() {
Refresh(r)
Expand Down

0 comments on commit 8f5ebcd

Please sign in to comment.