1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

Simpler generic syntax

This commit is contained in:
Emil Ernerfeldt
2023-08-14 13:24:19 +02:00
parent fdb5dc4d3b
commit 29eb119714

View File

@@ -1604,10 +1604,10 @@ impl PreparedPlot {
let mut axes_shapes = Vec::new();
if self.show_grid.x {
self.paint_grid::<{ X_AXIS }>(ui, &mut axes_shapes);
self.paint_grid::<X_AXIS>(ui, &mut axes_shapes);
}
if self.show_grid.y {
self.paint_grid::<{ Y_AXIS }>(ui, &mut axes_shapes);
self.paint_grid::<Y_AXIS>(ui, &mut axes_shapes);
}
// Sort the axes by strength so that those with higher strength are drawn in front.