mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 11: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);
|
buffer.shape_until_scroll(&mut self.font_system, false);
|
||||||
|
|
||||||
let text_areas = [glyphon::TextArea {
|
let text_area = glyphon::TextArea {
|
||||||
buffer: &buffer,
|
buffer: &buffer,
|
||||||
left: 0.,
|
left: 0.,
|
||||||
top: 0.,
|
top: 0.,
|
||||||
@ -100,7 +100,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(
|
||||||
@ -109,7 +109,7 @@ impl TextRenderer {
|
|||||||
&mut self.font_system,
|
&mut self.font_system,
|
||||||
&mut self.text_atlas,
|
&mut self.text_atlas,
|
||||||
&self.viewport,
|
&self.viewport,
|
||||||
text_areas,
|
[text_area],
|
||||||
&mut self.swash_cache,
|
&mut self.swash_cache,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user