Merge pull request #13378 from storytold/fix/paint-tests-use-stroke-results

paint: two stroke tests check the result the stroke now returns
This commit is contained in:
David Mann authored and GitHub committed 2026-11-12 01:40:04 +01:00
commit 2a4e0f4c99
2 files changed
+2 -2

No files matched your search

@@ -20,7 +20,7 @@ fn click_with(s: &mut Surface, wet: f32, mix: f32, flow: f32) {
let mut st = MixerState::default();
st.load([0.0, 0.0, 0.0, 1.0]);
let m = MixerSettings { wet, load: 0.75, mix, flow, ..Default::default() };
apply_mixer_stroke(s, None, &stroke, &m, &mut st, None, false);
apply_mixer_stroke(s, None, &stroke, &m, &mut st, None, false).unwrap();
}
fn alpha(s: &Surface, x: i32, y: i32) -> i32 {
+1 -1
View File
@@ -40,7 +40,7 @@ fn click_with(anti_alias: bool, flow: f32, hardness: f32) -> Surface {
color: [0.0, 0.0, 1.0, 1.0],
..Default::default()
};
apply_color_replacement(&mut s, &stroke, &rs, None, false);
apply_color_replacement(&mut s, &stroke, &rs, None, false).unwrap();
s
}