Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-11-25 23:15:56 +01:00
parent 02d1d75668
commit 62e967e10f

View File

@ -88,20 +88,24 @@ impl TextRenderer {
buffers.push(buffer); buffers.push(buffer);
} }
let text_areas = buffers.iter().map(|buffer| glyphon::TextArea { let mut text_areas = Vec::new();
buffer,
left: 0., for buffer in &buffers {
top: 0., text_areas.push(glyphon::TextArea {
scale: self.scale_factor, buffer,
bounds: glyphon::TextBounds { left: 0.,
left: 0, top: 0.,
top: 0, scale: self.scale_factor,
right: surface_config.width as i32, bounds: glyphon::TextBounds {
bottom: surface_config.height as i32, left: 0,
}, top: 0,
default_color: glyphon::Color::rgb(0, 0, 0), right: surface_config.width as i32,
custom_glyphs: &[], bottom: surface_config.height as i32,
}); },
default_color: glyphon::Color::rgb(0, 0, 0),
custom_glyphs: &[],
});
}
self.text_renderer self.text_renderer
.prepare( .prepare(