diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-30 01:15:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-30 01:15:28 -0400 |
| commit | 4f16b9438877d353e52870cb3631509bd0677da9 (patch) | |
| tree | 41aec2030b2b837a6e5aef94e9233fa4e89b9716 /redo/area_unix.go | |
| parent | 432a210726f2c5b753ff430765e9b3736d8db3b2 (diff) | |
Fixed image lists on Windows being NON-premultiplied.
Diffstat (limited to 'redo/area_unix.go')
| -rw-r--r-- | redo/area_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/area_unix.go b/redo/area_unix.go index 1cbc4e9..3c88f52 100644 --- a/redo/area_unix.go +++ b/redo/area_unix.go @@ -223,7 +223,7 @@ func our_area_draw_callback(widget *C.GtkWidget, cr *C.cairo_t, data C.gpointer) // the flush and mark_dirty calls are required; see the cairo docs and https://git.gnome.org/browse/gtk+/tree/gdk/gdkcairo.c#n232 (thanks desrt in irc.gimp.net/#gtk+) C.cairo_surface_flush(surface) toARGB(i, uintptr(unsafe.Pointer(C.cairo_image_surface_get_data(surface))), - int(C.cairo_image_surface_get_stride(surface))) + int(C.cairo_image_surface_get_stride(surface)), false) // not NRGBA C.cairo_surface_mark_dirty(surface) C.cairo_set_source_surface(cr, surface, |
