mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
cleanup
This commit is contained in:
@@ -795,10 +795,6 @@ impl GalleyCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn layout_multiline(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Galley {
|
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_section = 0;
|
||||||
let mut current = 0;
|
let mut current = 0;
|
||||||
let mut left_max_rows = job.wrap.max_rows;
|
let mut left_max_rows = job.wrap.max_rows;
|
||||||
@@ -868,9 +864,7 @@ impl GalleyCache {
|
|||||||
current = end;
|
current = end;
|
||||||
}
|
}
|
||||||
|
|
||||||
let pixels_per_point = fonts.pixels_per_point;
|
concat_galleys(job, &galleys, fonts.pixels_per_point)
|
||||||
|
|
||||||
concat_galleys(job, &galleys, pixels_per_point)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn layout_component_line(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Arc<Galley> {
|
fn layout_component_line(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Arc<Galley> {
|
||||||
|
|||||||
Reference in New Issue
Block a user