From 1daa93d4ceb1768ac1878229006247ae07b50f6b Mon Sep 17 00:00:00 2001 From: maxsupermanhd Date: Sat, 25 Nov 2023 13:46:44 +0000 Subject: [PATCH] what happened here?! --- imageCache/cache.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/imageCache/cache.go b/imageCache/cache.go index f547056..3b53de6 100644 --- a/imageCache/cache.go +++ b/imageCache/cache.go @@ -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 }