mirror of https://github.com/adamdruppe/arsd.git
Remove unnecessary array
This commit is contained in:
parent
16994b51f6
commit
539480a2fa
|
@ -3125,11 +3125,6 @@ private void scaleToImpl(ScalingFilter filter)(const Pixmap source, Pixmap targe
|
||||||
|
|
||||||
const posSrcCenterX = posDst[idxX] * ratios[idxX] + ratiosHalf[idxX];
|
const posSrcCenterX = posDst[idxX] * ratios[idxX] + ratiosHalf[idxX];
|
||||||
|
|
||||||
const UDecimal[2] posSrcCenter = [
|
|
||||||
posSrcCenterX,
|
|
||||||
posSrcCenterY,
|
|
||||||
];
|
|
||||||
|
|
||||||
const int[2] posSrcX = posSrcCenterToInterpolationTargets!(directionX)(
|
const int[2] posSrcX = posSrcCenterToInterpolationTargets!(directionX)(
|
||||||
posSrcCenterX,
|
posSrcCenterX,
|
||||||
ratiosHalf[idxX],
|
ratiosHalf[idxX],
|
||||||
|
@ -3324,7 +3319,7 @@ private void scaleToImpl(ScalingFilter filter)(const Pixmap source, Pixmap targe
|
||||||
|
|
||||||
const ulong[2] weightsX = () {
|
const ulong[2] weightsX = () {
|
||||||
ulong[2] result;
|
ulong[2] result;
|
||||||
result[0] = (udecimalHalf + posSrcX[1] - posSrcCenter[idxX]).fractionalDigits;
|
result[0] = (udecimalHalf + posSrcX[1] - posSrcCenterX).fractionalDigits;
|
||||||
result[1] = ulong(uint.max) + 1 - result[0];
|
result[1] = ulong(uint.max) + 1 - result[0];
|
||||||
return result;
|
return result;
|
||||||
}();
|
}();
|
||||||
|
|
Loading…
Reference in New Issue