Skip to content

Commit

Permalink
re #3. Fix scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Oct 3, 2022
1 parent cbefbb0 commit 081a266
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ impl Vger {
assert!(glyph.height == rect.height as usize);

prim.quad_bounds = [
(glyph.x),
(glyph.y),
(glyph.x + glyph.width as f32),
(glyph.y + glyph.height as f32),
glyph.x / scale,
glyph.y / scale,
(glyph.x + glyph.width as f32) / scale,
(glyph.y + glyph.height as f32) / scale,
];
// println!("quad_bounds: {:?}", prim.quad_bounds);

Expand Down

0 comments on commit 081a266

Please sign in to comment.