From 26c839384f7c4472345b6467aa0b43578c101512 Mon Sep 17 00:00:00 2001 From: Jonathan Williamson Date: Mon, 15 Jul 2024 11:43:23 +0100 Subject: [PATCH] remove interpolator support for now until fixed --- pretty-poly.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pretty-poly.h b/pretty-poly.h index 9863daf..4f352c7 100644 --- a/pretty-poly.h +++ b/pretty-poly.h @@ -353,26 +353,26 @@ void add_line_segment_to_nodes(const pp_point_t start, const pp_point_t end) { x += xinc * xjump; } -#ifdef USE_RP2040_INTERP - interp1->base[1] = full_tile_width; - interp1->accum[0] = x; - - // loop over scanlines - while(count--) { - // consume accumulated error - while(e > dy) {e -= dy; interp1->add_raw[0] = xinc;} - - // clamp node x value to tile bounds - const int nx = interp1->peek[0]; - debug(" + adding node at %d, %d\n", x, y); - // add node to node list - nodes[y][node_counts[y]++] = nx; - - // step to next scanline and accumulate error - y++; - e += einc; - } -#else +// #ifdef USE_RP2040_INTERP +// interp1->base[1] = full_tile_width; +// interp1->accum[0] = x; + +// // loop over scanlines +// while(count--) { +// // consume accumulated error +// while(e > dy) {e -= dy; interp1->add_raw[0] = xinc;} + +// // clamp node x value to tile bounds +// const int nx = interp1->peek[0]; +// debug(" + adding node at %d, %d\n", x, y); +// // add node to node list +// nodes[y][node_counts[y]++] = nx; + +// // step to next scanline and accumulate error +// y++; +// e += einc; +// } +// #else // loop over scanlines while(count--) { // consume accumulated error @@ -388,7 +388,7 @@ void add_line_segment_to_nodes(const pp_point_t start, const pp_point_t end) { y++; e += einc; } -#endif +//#endif } void build_nodes(pp_path_t *contour, pp_rect_t *bounds) {