summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
Diffstat (limited to 'area.go')
-rw-r--r--area.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/area.go b/area.go
index b1d1b83..0fc33d2 100644
--- a/area.go
+++ b/area.go
@@ -355,6 +355,7 @@ 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)