From edfca55824d4f80d7b84fb9de58e0ddac5270ab1 Mon Sep 17 00:00:00 2001 From: qvest-ssels <214787280+qvest-ssels@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:57:43 +0100 Subject: [PATCH] Pencil test: a size 9 line in Grayscale 32, where size 2 paints nothing (#17560) --- crates/engine-paint/src/cmd/brush_cmds/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine-paint/src/cmd/brush_cmds/tests.rs b/crates/engine-paint/src/cmd/brush_cmds/tests.rs index 4b9e60cef0d..19e5f3d976c 100644 --- a/crates/engine-paint/src/cmd/brush_cmds/tests.rs +++ b/crates/engine-paint/src/cmd/brush_cmds/tests.rs @@ -713,7 +713,8 @@ fn works_on_cmyk_and_16_bit() { let mut s = crate::session(); s.execute("file.new", json!({"width": 60, "height": 30, "mode": mode, "depth": depth})).unwrap(); s.execute("paint.stroke", json!({"points": [[5, 15], [55, 15]], "preset": "Chalk", "color": "#000000"})).unwrap(); - s.execute("paint.pencil", json!({"points": [[5, 5], [55, 5]], "size": 2, "color": "#000000"})).unwrap(); + // Size 9: a 2 px Pencil paints nothing in 32 bit, as in the reference (#17560). + s.execute("paint.pencil", json!({"points": [[5, 5], [55, 5]], "size": 9, "color": "#000000"})).unwrap(); assert!(rgba(&s, 30, 5)[0] < 0.2, "{mode}/{depth}: {:?}", rgba(&s, 30, 5)); } }