Add function to set metrics and size simultaneously

This commit is contained in:
Jeremy Soller 2023-10-31 20:40:46 -06:00
parent 423fc22439
commit d53932bd7c
2 changed files with 30 additions and 14 deletions

View file

@ -590,13 +590,7 @@ impl<'a> Edit for ViEditor<'a> {
Color::rgba(color.r(), color.g(), color.b(), 0x33),
);
} else {
f(
start_x,
line_top as i32,
1,
line_height as u32,
color,
);
f(start_x, line_top as i32, 1, line_height as u32, color);
}
}