Checkpoint

This commit is contained in:
Nathan Sobo 2023-10-03 11:16:42 -06:00
parent bfa211fb02
commit 3698e89b88
10 changed files with 151 additions and 102 deletions

View file

@ -200,7 +200,7 @@ impl<'a, 'w> WindowContext<'a, 'w> {
let mut origin = (target_position * scale_factor).map(|p| p.floor());
// Position glyph within bounding box
origin += offset.map(|o| px(u32::from(o) as f32));
let size = tile.bounds_in_atlas.size.map(|b| px(b.0 as f32));
let size = tile.bounds.size.map(|b| px(b.0 as f32));
let bounds = Bounds { origin, size };
Ok((tile, bounds))