More TODOs (because I can't think right now).
This commit is contained in:
parent
5cac12e3f0
commit
44b061aa31
1
area.go
1
area.go
|
@ -355,6 +355,7 @@ 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)
|
||||||
|
|
Loading…
Reference in New Issue