Skip to content

Commit

Permalink
what happened here?!
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Nov 25, 2023
1 parent f350b55 commit 1daa93d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions imageCache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,9 @@ func copyFragmentRGBA(from *image.RGBA, target ImageLocation) *image.RGBA {
if from == nil {
return nil
}
ax, az := AT(target.X*powarr[target.S], target.Z*powarr[target.S])
rx, rz := IN(ax, az)
to := image.NewRGBA(image.Rect(rx*16, rz*16, powarr16[target.S], powarr16[target.S]))
draw.DrawMask(to, to.Rect, from, image.Point{}, nil, image.Point{}, draw.Src)
ax, az := IN(target.X*powarr[target.S], target.Z*powarr[target.S])
to := image.NewRGBA(image.Rect(0, 0, powarr16[target.S], powarr16[target.S]))
draw.DrawMask(to, to.Rect, from, image.Point{X: ax * 16, Y: az * 16}, nil, image.Point{}, draw.Src)
return to
}

Expand Down

0 comments on commit 1daa93d

Please sign in to comment.