diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
| commit | 982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch) | |
| tree | 517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /imagelist_unix.go | |
| parent | 09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff) | |
go fmt. Precursor to bug report filing.
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 { |
