From d7c37671f369301371d54acf8da3ffa6862d5982 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 3 Jun 2014 22:29:40 -0400 Subject: [PATCH] Removed the TODO on memstride: we were already using it?????? It is working correctly... No idea why that TODO was there; I know I added it when I was too tired to think though. --- area.go | 1 - 1 file changed, 1 deletion(-) diff --git a/area.go b/area.go index 4fc7b13..90c32da 100644 --- a/area.go +++ b/area.go @@ -351,7 +351,6 @@ func toARGB(i *image.RGBA, memory uintptr, memstride int) { rbs := (*reflect.SliceHeader)(unsafe.Pointer(&realbits)) rbs.Data = memory - // TODO BUG (we're lucky this didn't break on GTK+) - use stride here rbs.Len = 4 * i.Rect.Dx() * i.Rect.Dy() rbs.Cap = rbs.Len p := pixelDataPos(i)