@@ -275,8 +275,8 @@ fn thickline(
275
275
276
276
seed_line_error += e_major;
277
277
thickness_accumulator += 2 * thickness_dx;
278
- seed_point += seed_step. major ;
279
- mul_point += parallel_step_full. minor * -1 ;
278
+ seed_point += seed_step. major * 2 ;
279
+ mul_point += parallel_step_full. minor * -1 * 2 ;
280
280
281
281
prev = p;
282
282
}
@@ -444,6 +444,8 @@ fn parallel_line_2(
444
444
) -> Result < ( ) , std:: convert:: Infallible > {
445
445
let mut point = start;
446
446
447
+ point += step. major * 2 ;
448
+
447
449
let dx = delta. major ;
448
450
let dy = delta. minor ;
449
451
@@ -469,19 +471,19 @@ fn parallel_line_2(
469
471
470
472
Pixel ( p, c) . draw ( display) ?;
471
473
472
- // Draws a pixel connecting a diagonal move into a solid stairstep-looking piece. This is
473
- // required for the additional diagonal move lines that are drawn when stepping in both the
474
- // major and minor directions in the seed line.
475
- if extra {
476
- let p = point + step. minor ;
474
+ // // Draws a pixel connecting a diagonal move into a solid stairstep-looking piece. This is
475
+ // // required for the additional diagonal move lines that are drawn when stepping in both the
476
+ // // major and minor directions in the seed line.
477
+ // if extra {
478
+ // let p = point + step.minor;
477
479
478
- let p = Point :: new (
479
- if line_is_y_major { p. x >> 8 } else { p. x } ,
480
- if line_is_y_major { p. y } else { p. y >> 8 } ,
481
- ) ;
480
+ // let p = Point::new(
481
+ // if line_is_y_major { p.x >> 8 } else { p.x },
482
+ // if line_is_y_major { p.y } else { p.y >> 8 },
483
+ // );
482
484
483
- Pixel ( p, c) . draw ( display) ?;
484
- }
485
+ // Pixel(p, c).draw(display)?;
486
+ // }
485
487
486
488
if error > 0 {
487
489
point += step. minor ;
0 commit comments