mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 03:18:30 +00:00
Set viewport resolution
This commit is contained in:
parent
8f9a84c4e1
commit
b15617129a
@ -19,7 +19,14 @@ impl TextRenderer {
|
||||
surface_config.format,
|
||||
);
|
||||
|
||||
let viewport = glyphon::Viewport::new(device, &cache);
|
||||
let mut viewport = glyphon::Viewport::new(device, &cache);
|
||||
viewport.update(
|
||||
queue,
|
||||
glyphon::Resolution {
|
||||
width: surface_config.width,
|
||||
height: surface_config.height,
|
||||
},
|
||||
);
|
||||
|
||||
let text_renderer = glyphon::TextRenderer::new(
|
||||
&mut text_atlas,
|
||||
|
Loading…
Reference in New Issue
Block a user