1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00
This commit is contained in:
Emil Ernerfeldt
2025-01-02 02:29:19 +01:00
parent 9fa294f21f
commit 77c9fd85bd

View File

@@ -795,10 +795,6 @@ impl GalleyCache {
}
fn layout_multiline(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Galley {
let pixels_per_point = fonts.pixels_per_point;
let round_to_pixel =
move |point: f32| (point * pixels_per_point).round() / pixels_per_point;
let mut current_section = 0;
let mut current = 0;
let mut left_max_rows = job.wrap.max_rows;
@@ -868,9 +864,7 @@ impl GalleyCache {
current = end;
}
let pixels_per_point = fonts.pixels_per_point;
concat_galleys(job, &galleys, pixels_per_point)
concat_galleys(job, &galleys, fonts.pixels_per_point)
}
fn layout_component_line(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Arc<Galley> {