summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx.c b/gfx.c
index c7589316d..b010f034d 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1426,7 +1426,7 @@ static void GfxMainBlitter(byte *sprite, int x, int y, int mode)
byte *src = bp.sprite_org;
signed char b;
- bp.sprite += (dst - src);
+ bp.sprite = dst + (bp.sprite - bp.sprite_org);
while (totpix != 0) {
assert(totpix > 0);