mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-15 14:43:28 +00:00
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:
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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user