@@ -353,26 +353,26 @@ void add_line_segment_to_nodes(const pp_point_t start, const pp_point_t end) {
353
353
x += xinc * xjump ;
354
354
}
355
355
356
- #ifdef USE_RP2040_INTERP
357
- interp1 -> base [1 ] = full_tile_width ;
358
- interp1 -> accum [0 ] = x ;
359
-
360
- // loop over scanlines
361
- while (count -- ) {
362
- // consume accumulated error
363
- while (e > dy ) {e -= dy ; interp1 -> add_raw [0 ] = xinc ;}
364
-
365
- // clamp node x value to tile bounds
366
- const int nx = interp1 -> peek [0 ];
367
- debug (" + adding node at %d, %d\n" , x , y );
368
- // add node to node list
369
- nodes [y ][node_counts [y ]++ ] = nx ;
370
-
371
- // step to next scanline and accumulate error
372
- y ++ ;
373
- e += einc ;
374
- }
375
- #else
356
+ // #ifdef USE_RP2040_INTERP
357
+ // interp1->base[1] = full_tile_width;
358
+ // interp1->accum[0] = x;
359
+
360
+ // // loop over scanlines
361
+ // while(count--) {
362
+ // // consume accumulated error
363
+ // while(e > dy) {e -= dy; interp1->add_raw[0] = xinc;}
364
+
365
+ // // clamp node x value to tile bounds
366
+ // const int nx = interp1->peek[0];
367
+ // debug(" + adding node at %d, %d\n", x, y);
368
+ // // add node to node list
369
+ // nodes[y][node_counts[y]++] = nx;
370
+
371
+ // // step to next scanline and accumulate error
372
+ // y++;
373
+ // e += einc;
374
+ // }
375
+ // #else
376
376
// loop over scanlines
377
377
while (count -- ) {
378
378
// consume accumulated error
@@ -388,7 +388,7 @@ void add_line_segment_to_nodes(const pp_point_t start, const pp_point_t end) {
388
388
y ++ ;
389
389
e += einc ;
390
390
}
391
- #endif
391
+ // #endif
392
392
}
393
393
394
394
void build_nodes (pp_path_t * contour , pp_rect_t * bounds ) {
@@ -427,7 +427,7 @@ pp_rect_t render_nodes(pp_rect_t *tb) {
427
427
428
428
debug (" + render tile %d, %d - %d, %d\n" , tb -> x , tb -> y , tb -> w , tb -> h );
429
429
430
- for (uint32_t y = 0 ; y < (PP_TILE_BUFFER_SIZE << _pp_antialias ); y ++ ) {
430
+ for (uint32_t y = 0 ; y < (( uint32_t ) PP_TILE_BUFFER_SIZE << _pp_antialias ); y ++ ) {
431
431
432
432
// debug(" : row %d node count %d\n", y, node_counts[y]);
433
433
0 commit comments