mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Fix the magnification range of the tessellation test
This commit is contained in:
@@ -178,7 +178,7 @@ impl crate::View for TessellationTest {
|
|||||||
ui.add(
|
ui.add(
|
||||||
egui::DragValue::new(magnification_pixel_size)
|
egui::DragValue::new(magnification_pixel_size)
|
||||||
.speed(0.5)
|
.speed(0.5)
|
||||||
.range(0.0..=64.0),
|
.range(1.0..=32.0),
|
||||||
);
|
);
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
|
|
||||||
@@ -244,6 +244,7 @@ impl crate::View for TessellationTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if 3.0 < magnification_pixel_size {
|
||||||
// Draw pixel centers:
|
// Draw pixel centers:
|
||||||
let pixel_radius = 0.75;
|
let pixel_radius = 0.75;
|
||||||
let pixel_color = Color32::GRAY;
|
let pixel_color = Color32::GRAY;
|
||||||
@@ -266,6 +267,7 @@ impl crate::View for TessellationTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user