X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=interpolate.cpp;h=78b2dae1e43e59cdb8923d90e6fd9a8e5645f0dd;hp=cd250c151851619bb0fd128e5120dbc18e049ec1;hb=d693db9567105ab7837addb952c2553d2dfa9543;hpb=08089f496815d725c3bee171bae0e884642ffc05 diff --git a/interpolate.cpp b/interpolate.cpp index cd250c1..78b2dae 100644 --- a/interpolate.cpp +++ b/interpolate.cpp @@ -1,11 +1,11 @@ #include "interpolate.h" -double lanczos_table[(LANCZOS_RADIUS * 2) * LANCZOS_RESOLUTION]; +double lanczos_table[LANCZOS_RADIUS * LANCZOS_RESOLUTION]; void make_lanczos_weight_table() { - for (int i = 0; i < (LANCZOS_RADIUS * 2) * LANCZOS_RESOLUTION; ++i) { - float x = double(i) / LANCZOS_RESOLUTION - LANCZOS_RADIUS; + for (int i = 0; i < LANCZOS_RADIUS * LANCZOS_RESOLUTION; ++i) { + float x = double(i) / LANCZOS_RESOLUTION; lanczos_table[i] = lanczos_weight(x); } }