Skip to content

Commit

Permalink
remove interpolator support for now until fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lowfatcode committed Jul 15, 2024
1 parent 552915a commit 26c8393
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions pretty-poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 26c8393

Please sign in to comment.