From 141945cc3cf9fe86112896bd00e0554222f5a3a0 Mon Sep 17 00:00:00 2001 From: jaygarcia Date: Thu, 29 Oct 2020 14:26:06 -0400 Subject: [PATCH] Found that we were cutting sprites by 1px on the bottom and right --- src/BSprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BSprite.cpp b/src/BSprite.cpp index 0853bbc..6e581c6 100644 --- a/src/BSprite.cpp +++ b/src/BSprite.cpp @@ -130,9 +130,9 @@ BSprite::DrawSprite(BViewPort *aViewPort, TInt16 aBitmapSlot, TInt aImageNumber, TRect imageRect; imageRect.x1 = (aImageNumber % pitch) * bw; - imageRect.x2 = imageRect.x1 + bw - 1; + imageRect.x2 = imageRect.x1 + bw; imageRect.y1 = (aImageNumber / pitch) * bh; - imageRect.y2 = imageRect.y1 + bh - 1; + imageRect.y2 = imageRect.y1 + bh; return b->TransparentColor() ? gDisplay.renderBitmap->DrawBitmapTransparent(aViewPort, b, imageRect, aX, aY, (aFlags >> 6) & 0x0f)