From f03d704ddb2412676d75733d4a45ae301d06b974 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 21 Jun 2017 13:47:04 +0000 Subject: [PATCH] Polymost: Don't cut off a row and/or column of texels when drawing floor-aligned sprites with odd dimensions. git-svn-id: https://svn.eduke32.com/eduke32@6219 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 2f2589950..8936041b3 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -4747,8 +4747,8 @@ void polymost_drawsprite(int32_t snum) if ((globalorientation & 8) > 0) off.y = -off.y; - vec2f_t const p0 = { (float)((tsiz.x >> 1) - off.x) * tspr->xrepeat, - (float)((tsiz.y >> 1) - off.y) * tspr->yrepeat }, + vec2f_t const p0 = { (float)(((tsiz.x + 1) >> 1) - off.x) * tspr->xrepeat, + (float)(((tsiz.y + 1) >> 1) - off.y) * tspr->yrepeat }, p1 = { (float)((tsiz.x >> 1) + off.x) * tspr->xrepeat, (float)((tsiz.y >> 1) + off.y) * tspr->yrepeat };