mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
apps/gophers: update to renamed Config.Pixels method
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user