From 0a9fd2c9fa047d122083c6c9e91cc5a3a32aed04 Mon Sep 17 00:00:00 2001 From: Jaime Ita Passos Date: Mon, 8 Nov 2021 00:38:24 -0300 Subject: [PATCH] Fix #555 --- src/r_patchrotation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_patchrotation.c b/src/r_patchrotation.c index 74afeb396..620ddc0fc 100644 --- a/src/r_patchrotation.c +++ b/src/r_patchrotation.c @@ -291,8 +291,8 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle ox = (newwidth / 2) + (leftoffset - xpivot); oy = (newheight / 2) + (patch->topoffset - ypivot); - width = (maxx - minx); - height = (maxy - miny); + width = (maxx+1 - minx); + height = (maxy+1 - miny); if ((unsigned)(width * height) != size) {