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);
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user