diff options
Diffstat (limited to 'imagelist_unix.go')
| -rw-r--r-- | imagelist_unix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/imagelist_unix.go b/imagelist_unix.go index 246f281..dc6e624 100644 --- a/imagelist_unix.go +++ b/imagelist_unix.go @@ -6,15 +6,15 @@ package ui import ( "fmt" - "unsafe" "image" + "unsafe" ) // #include "gtk_unix.h" import "C" type imagelist struct { - list []*C.GdkPixbuf + list []*C.GdkPixbuf } func newImageList() ImageList { @@ -37,7 +37,7 @@ func (i *imagelist) Append(img *image.RGBA) { } C.cairo_surface_flush(surface) toARGB(img, uintptr(unsafe.Pointer(C.cairo_image_surface_get_data(surface))), - int(C.cairo_image_surface_get_stride(surface)), false) // not NRGBA + int(C.cairo_image_surface_get_stride(surface)), false) // not NRGBA C.cairo_surface_mark_dirty(surface) basepixbuf := C.gdk_pixbuf_get_from_surface(surface, 0, 0, C.gint(img.Rect.Dx()), C.gint(img.Rect.Dy())) if basepixbuf == nil { |
