This commit is contained in:
Hanno Braun 2024-11-27 19:00:43 +01:00
parent 9b5ed60434
commit 4a6888d3b2

View File

@ -87,10 +87,9 @@ impl TextRenderer {
buffer.shape_until_scroll(&mut self.font_system, false); buffer.shape_until_scroll(&mut self.font_system, false);
let mut text_areas = Vec::new();
let top = 0.; let top = 0.;
text_areas.push(glyphon::TextArea { let text_areas = [glyphon::TextArea {
buffer: &buffer, buffer: &buffer,
left: 0., left: 0.,
top, top,
@ -103,7 +102,7 @@ impl TextRenderer {
}, },
default_color: glyphon::Color::rgb(0, 0, 0), default_color: glyphon::Color::rgb(0, 0, 0),
custom_glyphs: &[], custom_glyphs: &[],
}); }];
self.text_renderer self.text_renderer
.prepare( .prepare(