Skip to content
Snippets Groups Projects
Verified Commit 22c74f3a authored by Louis's avatar Louis :fire:
Browse files

Add pixel buffer to sprite bounds

parent 1cd41b2f
Branches feature/atlas-pack
No related tags found
No related merge requests found
Pipeline #530 waiting for manual action with stages
in 1 minute and 11 seconds
......@@ -40,10 +40,10 @@ struct BlobBounds {
impl BlobBounds {
pub fn width(&self) -> u32 {
self.right.saturating_sub(self.left)
(self.right + 1).saturating_sub(self.left)
}
pub fn height(&self) -> u32 {
self.bottom.saturating_sub(self.top)
(self.bottom + 1).saturating_sub(self.top)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment