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.

This commit is contained in:
Pietro Gagliardi 2014-06-03 22:29:40 -04:00
parent 3af926cf3b
commit d7c37671f3
1 changed files with 0 additions and 1 deletions

View File

@ -351,7 +351,6 @@ func toARGB(i *image.RGBA, memory uintptr, memstride int) {
rbs := (*reflect.SliceHeader)(unsafe.Pointer(&realbits)) rbs := (*reflect.SliceHeader)(unsafe.Pointer(&realbits))
rbs.Data = memory 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.Len = 4 * i.Rect.Dx() * i.Rect.Dy()
rbs.Cap = rbs.Len rbs.Cap = rbs.Len
p := pixelDataPos(i) p := pixelDataPos(i)