diff --git a/area_windows.go b/area_windows.go index bf4b9e9..bd3254f 100644 --- a/area_windows.go +++ b/area_windows.go @@ -123,6 +123,7 @@ func dotoARGB(img unsafe.Pointer, ppvBits unsafe.Pointer, toNRGBA C.BOOL) { i := (*image.RGBA)(unsafe.Pointer(img)) t := toNRGBA != C.FALSE // the bitmap Windows gives us has a stride == width + // TODO use GetObject() and get the stride from the resultant BITMAP to be *absolutely* sure toARGB(i, uintptr(ppvBits), i.Rect.Dx()*4, t) }