Handle negative glyph positions correctly

This commit is contained in:
grovesNL 2022-11-29 14:33:12 -03:30
parent ca27ec508c
commit 2a01a1b2e0
4 changed files with 19 additions and 19 deletions

View file

@ -46,7 +46,7 @@ pub(crate) struct GlyphDetails {
#[repr(C)]
#[derive(Clone, Copy, Debug)]
pub(crate) struct GlyphToRender {
pos: [u32; 2],
pos: [i32; 2],
dim: [u16; 2],
uv: [u16; 2],
color: [u8; 4],