mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Simplify
This commit is contained in:
parent
7e54b3484b
commit
add77b0a13
@ -87,7 +87,7 @@ impl TextRenderer {
|
||||
|
||||
buffer.shape_until_scroll(&mut self.font_system, false);
|
||||
|
||||
let text_areas = [glyphon::TextArea {
|
||||
let text_area = glyphon::TextArea {
|
||||
buffer: &buffer,
|
||||
left: 0.,
|
||||
top: 0.,
|
||||
@ -100,7 +100,7 @@ impl TextRenderer {
|
||||
},
|
||||
default_color: glyphon::Color::rgb(0, 0, 0),
|
||||
custom_glyphs: &[],
|
||||
}];
|
||||
};
|
||||
|
||||
self.text_renderer
|
||||
.prepare(
|
||||
@ -109,7 +109,7 @@ impl TextRenderer {
|
||||
&mut self.font_system,
|
||||
&mut self.text_atlas,
|
||||
&self.viewport,
|
||||
text_areas,
|
||||
[text_area],
|
||||
&mut self.swash_cache,
|
||||
)
|
||||
.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user