apps/gophers: update to renamed Config.Pixels method

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-10 14:03:30 +02:00
parent 320579814f
commit 624ef78e1c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/apps
go 1.12
require (
gioui.org/ui v0.0.0-20190710113106-ad4215a7ebb1
gioui.org/ui v0.0.0-20190710120044-320579814f85
github.com/google/go-github/v24 v24.0.1
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9
+1 -1
View File
@@ -723,7 +723,7 @@ func toRectF(r image.Rectangle) f32.Rectangle {
}
func (ic *icon) image(cfg *ui.Config) image.Image {
sz := cfg.Val(ic.size)
sz := cfg.Pixels(ic.size)
if sz == ic.imgSize {
return ic.img
}