1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Optimize tessellator: pass options by reference

This commit is contained in:
Emil Ernerfeldt
2021-09-28 18:00:01 +02:00
parent 2e83e36146
commit d9db768180
2 changed files with 13 additions and 13 deletions

View File

@@ -567,7 +567,7 @@ fn add_hline(fonts: &Fonts, [start, stop]: [Pos2; 2], stroke: Stroke, mesh: &mut
let options = crate::tessellator::TessellationOptions::from_pixels_per_point(
fonts.pixels_per_point(),
);
path.stroke_open(stroke, options, mesh);
path.stroke_open(stroke, &options, mesh);
} else {
// Thin lines often lost, so this is a bad idea