Skip to content

Commit 068003e

Browse files
formatting
1 parent 2f64596 commit 068003e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/src/formats/jpeg_encoder.dart

+4-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@ class JpegEncoder extends Encoder {
160160
final backgroundColor = image.backgroundColor ?? _backgroundColor;
161161
final a = p.aNormalized;
162162
final invA = 1.0 - a;
163-
p..r = (p.r * a + backgroundColor.r * invA).round()
164-
..g = (p.g * a + backgroundColor.r * invA).round()
165-
..b = (p.b * a + backgroundColor.r * invA).round();
163+
p
164+
..r = (p.r * a + backgroundColor.r * invA).round()
165+
..g = (p.g * a + backgroundColor.r * invA).round()
166+
..b = (p.b * a + backgroundColor.r * invA).round();
166167
}
167168
final r = p.r.toInt();
168169
final g = p.g.toInt();

0 commit comments

Comments
 (0)