mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Make WidgetText smaller and faster (#6903)
* In preparation of #5830, this should reduce the performance impact of that PR --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -134,7 +134,7 @@ impl std::fmt::Display for Anchor {
|
||||
|
||||
impl From<Anchor> for egui::WidgetText {
|
||||
fn from(value: Anchor) -> Self {
|
||||
Self::RichText(egui::RichText::new(value.to_string()))
|
||||
Self::from(value.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user