aboutsummaryrefslogtreecommitdiffstats
path: root/gui/widget/image.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-05-10 13:17:02 -0400
committerSam Anthony <sam@samanthony.xyz>2024-05-10 13:17:02 -0400
commit15c9618700dc681e6b94e83a1aaeea6cbcd0c2c2 (patch)
treebd92f064527f8897c41e294df10efaaaef5f50fd /gui/widget/image.go
parent97a7a7cd2afa18b73f5982ecb3ec08c0392b6d1e (diff)
downloadvolute-15c9618700dc681e6b94e83a1aaeea6cbcd0c2c2.zip
separate label widget and style constants
Diffstat (limited to 'gui/widget/image.go')
-rw-r--r--gui/widget/image.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/widget/image.go b/gui/widget/image.go
index c5712c4..daf76aa 100644
--- a/gui/widget/image.go
+++ b/gui/widget/image.go
@@ -3,6 +3,7 @@ package widget
import (
"sync"
+ xdraw "golang.org/x/image/draw"
"image"
"image/draw"
@@ -10,6 +11,8 @@ import (
"volute/gui/win"
)
+var interpolator = xdraw.ApproxBiLinear
+
func Image(imChan <-chan image.Image, r image.Rectangle, env gui.Env, wg *sync.WaitGroup) {
defer wg.Done()
defer close(env.Draw())