More TODOs.

This commit is contained in:
Pietro Gagliardi 2015-02-17 21:40:08 -05:00
parent c59cbf6de7
commit b912afe4e7
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ func dotoARGB(img unsafe.Pointer, ppvBits unsafe.Pointer, toNRGBA C.BOOL) {
i := (*image.RGBA)(unsafe.Pointer(img)) i := (*image.RGBA)(unsafe.Pointer(img))
t := toNRGBA != C.FALSE t := toNRGBA != C.FALSE
// the bitmap Windows gives us has a stride == width // 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) toARGB(i, uintptr(ppvBits), i.Rect.Dx()*4, t)
} }