summaryrefslogtreecommitdiff
path: root/src/pkg/exp/draw/draw.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/exp/draw/draw.go')
-rw-r--r--src/pkg/exp/draw/draw.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exp/draw/draw.go b/src/pkg/exp/draw/draw.go
index 7d9b43ade..6c50faa84 100644
--- a/src/pkg/exp/draw/draw.go
+++ b/src/pkg/exp/draw/draw.go
@@ -182,7 +182,7 @@ func drawCopyOver(dst *image.RGBA, r Rectangle, src *image.RGBA, sp Point) {
y0, y1 := r.Min.Y, r.Max.Y
for y, sy := y0, sp.Y; y != y1; y, sy = y+1, sy+1 {
dpix := dst.Pixel[y]
- spix := src.Pixel[y]
+ spix := src.Pixel[sy]
for x, sx := x0, sp.X; x != x1; x, sx = x+1, sx+1 {
// For unknown reasons, even though both dpix[x] and spix[sx] are
// image.RGBAColors, on an x86 CPU it seems fastest to call RGBA