diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-29 15:11:25 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-29 15:11:25 -0400 |
| commit | f19db96c4e9fdd956d503fbfd1a0c24051e4332f (patch) | |
| tree | 9d2094c61194e4962bb14df563304c2104095535 | |
| parent | 5f9221f07a01a2976b9df0dd363138d2626fd0d0 (diff) | |
Resolved another TODO in area_windows.go.
| -rw-r--r-- | area_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/area_windows.go b/area_windows.go index 6f4b5b2..3cd1e75 100644 --- a/area_windows.go +++ b/area_windows.go @@ -171,7 +171,7 @@ func paintArea(s *sysData) { // this is all we need, but because this confused me at first, I will say the two pixels-per-meter fields are unused (see http://blogs.msdn.com/b/oldnewthing/archive/2013/05/15/10418646.aspx and page 581 of Charles Petzold's Programming Windows, Fifth Edition) ppvBits := uintptr(0) // now for the trouble: CreateDIBSection() allocates the memory for us... r1, _, err = _createDIBSection.Call( - uintptr(0), // TODO is this safe? Ninjifox does it + uintptr(_NULL), // Ninjifox does this, so do some wine tests (http://source.winehq.org/source/dlls/gdi32/tests/bitmap.c#L725, thanks vpovirk in irc.freenode.net/#winehackers) and even Raymond Chen (http://blogs.msdn.com/b/oldnewthing/archive/2006/11/16/1086835.aspx), so. uintptr(unsafe.Pointer(&bi)), uintptr(_DIB_RGB_COLORS), uintptr(unsafe.Pointer(&ppvBits)), |
