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_windows.go | |
| parent | bfb259da273e13be02cb2dc637af737e4e694a72 (diff) | |
Fixed Area drawing assuming the first pixel of the *image.NRGBA is at i.Pix[0].
Diffstat (limited to '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 5f69b6c..a0b855d 100644 --- a/area_windows.go +++ b/area_windows.go @@ -109,7 +109,7 @@ func paintArea(s *sysData) { // we don't have a choice but to convert it ourselves // TODO make realbits a part of sysData to conserve memory realbits := make([]byte, 4 * i.Rect.Dx() * i.Rect.Dy()) - p := 0 + p := pixelDataPos(i) q := 0 for y := i.Rect.Min.Y; y < i.Rect.Max.Y; y++ { nextp := p + i.Stride |
