From 8b3464a4e055d0976316a8ecc01f3375710c29d4 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Mon, 14 Aug 2023 14:38:36 -0700 Subject: [PATCH] ++ --- dev/benchmarks/macrobenchmarks/lib/src/draw_points.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/benchmarks/macrobenchmarks/lib/src/draw_points.dart b/dev/benchmarks/macrobenchmarks/lib/src/draw_points.dart index a3ca792cb50d5..09989f7c695df 100644 --- a/dev/benchmarks/macrobenchmarks/lib/src/draw_points.dart +++ b/dev/benchmarks/macrobenchmarks/lib/src/draw_points.dart @@ -72,10 +72,10 @@ class PointsPainter extends CustomPainter { } canvas.drawPaint(Paint()..color = Colors.white); for (int i = 0; i < 8; i++) { - final double x = ((size.width / i) + tick) % size.width; + final double x = ((size.width / (i + 1)) + tick) % size.width; for (int j = 0; j < data.length; j += 2) { data[j] = x; - data[j + 1] = (size.height / j) + 200; + data[j + 1] = (size.height / (j + 1)) + 200; } final Paint paint = Paint() ..color = kColors[i]