mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-30 05:56:44 +00:00
Simplify
This commit is contained in:
parent
9b5ed60434
commit
4a6888d3b2
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user