mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-22 16:16:12 +00:00
Prepare for follow-on change
This commit is contained in:
parent
02d1d75668
commit
62e967e10f
@ -88,20 +88,24 @@ impl TextRenderer {
|
||||
buffers.push(buffer);
|
||||
}
|
||||
|
||||
let text_areas = buffers.iter().map(|buffer| glyphon::TextArea {
|
||||
buffer,
|
||||
left: 0.,
|
||||
top: 0.,
|
||||
scale: self.scale_factor,
|
||||
bounds: glyphon::TextBounds {
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: surface_config.width as i32,
|
||||
bottom: surface_config.height as i32,
|
||||
},
|
||||
default_color: glyphon::Color::rgb(0, 0, 0),
|
||||
custom_glyphs: &[],
|
||||
});
|
||||
let mut text_areas = Vec::new();
|
||||
|
||||
for buffer in &buffers {
|
||||
text_areas.push(glyphon::TextArea {
|
||||
buffer,
|
||||
left: 0.,
|
||||
top: 0.,
|
||||
scale: self.scale_factor,
|
||||
bounds: glyphon::TextBounds {
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: surface_config.width as i32,
|
||||
bottom: surface_config.height as i32,
|
||||
},
|
||||
default_color: glyphon::Color::rgb(0, 0, 0),
|
||||
custom_glyphs: &[],
|
||||
});
|
||||
}
|
||||
|
||||
self.text_renderer
|
||||
.prepare(
|
||||
|
Loading…
Reference in New Issue
Block a user