From b912afe4e7fe8cc156f9c957123eb125225f3ea3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 17 Feb 2015 21:40:08 -0500 Subject: [PATCH] More TODOs. --- area_windows.go | 1 + 1 file changed, 1 insertion(+) 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) }