diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-09 18:26:20 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-09 18:26:20 -0400 |
| commit | 78bb4cdace43829b1e10f359ddee1affcfd64148 (patch) | |
| tree | 580b6ccfd8ef5aee8223bd88d1636a35a91b084e /area_darwin.go | |
| parent | bfb259da273e13be02cb2dc637af737e4e694a72 (diff) | |
Fixed Area drawing assuming the first pixel of the *image.NRGBA is at i.Pix[0].
Diffstat (limited to 'area_darwin.go')
| -rw-r--r-- | area_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/area_darwin.go b/area_darwin.go index 8fc83a2..dcc6941 100644 --- a/area_darwin.go +++ b/area_darwin.go @@ -92,7 +92,7 @@ func areaView_drawRect(self C.id, rect C.struct_xrect) { } i := s.handler.Paint(cliprect) C.drawImage( - unsafe.Pointer(&i.Pix[0]), C.int64_t(i.Rect.Dx()), C.int64_t(i.Rect.Dy()), C.int64_t(i.Stride), + unsafe.Pointer(pixelData(i)), C.int64_t(i.Rect.Dx()), C.int64_t(i.Rect.Dy()), C.int64_t(i.Stride), C.int64_t(cliprect.Min.X), C.int64_t(cliprect.Min.Y)) } |
