diff --git a/image.go b/image.go index d36a401..b710045 100644 --- a/image.go +++ b/image.go @@ -47,7 +47,7 @@ func (i *Image) Free() { } // Append adds the given image as a representation of the Image. -func (i *Image) Append(img *image.NRGBA) { +func (i *Image) Append(img *image.RGBA) { cpix := C.CBytes(img.Pix) defer C.free(cpix) C.uiImageAppend(i.i, cpix, diff --git a/zz_table.go b/zz_table.go index 3e3a3b9..e7d3e2c 100644 --- a/zz_table.go +++ b/zz_table.go @@ -114,9 +114,9 @@ func appendImageNamed(i *ui.Image, which string) { if err != nil { panic(err) } - nr, ok := img.(*image.NRGBA) + nr, ok := img.(*image.RGBA) if !ok { - i2 := image.NewNRGBA(img.Bounds()) + i2 := image.NewRGBA(img.Bounds()) draw.Draw(i2, i2.Bounds(), img, img.Bounds().Min, draw.Src) nr = i2 }