Use resolution later

This commit is contained in:
grovesNL 2022-05-09 12:29:23 -02:30
parent a973504abd
commit ded1ba3310
2 changed files with 10 additions and 21 deletions

View file

@ -51,15 +51,7 @@ async fn run() {
};
surface.configure(&device, &config);
let mut text_renderer = TextRenderer::new(
&device,
&queue,
swapchain_format,
Resolution {
width: size.width,
height: size.height,
},
);
let mut text_renderer = TextRenderer::new(&device, &queue, swapchain_format);
let font = include_bytes!("./Inter-Bold.ttf") as &[u8];
let font = Font::from_bytes(font, FontSettings::default()).unwrap();