Run cargo fmt

This commit is contained in:
Héctor Ramón Jiménez 2025-03-09 01:00:26 +01:00
parent 9ab32ae1c3
commit 007fc4b0d5
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -75,8 +75,9 @@ impl TextRenderer {
let is_run_visible = |run: &cosmic_text::LayoutRun| { let is_run_visible = |run: &cosmic_text::LayoutRun| {
let start_y_physical = (text_area.top + (run.line_top * text_area.scale)) as i32; let start_y_physical = (text_area.top + (run.line_top * text_area.scale)) as i32;
let end_y_physical = start_y_physical + (run.line_height * text_area.scale) as i32; let end_y_physical = start_y_physical + (run.line_height * text_area.scale) as i32;
start_y_physical <= text_area.bounds.bottom && text_area.bounds.top <= end_y_physical start_y_physical <= text_area.bounds.bottom
&& text_area.bounds.top <= end_y_physical
}; };
let layout_runs = text_area let layout_runs = text_area