From 3a6ccac8eaf2704deca7365fafba2979c9e4c2eb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Aug 2020 21:15:22 +0200 Subject: [PATCH] - fixed bad offset with vertically mirrored sprites. Fixes #239 --- source/common/2d/v_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/2d/v_draw.cpp b/source/common/2d/v_draw.cpp index c5ac0e429..1b24449f1 100644 --- a/source/common/2d/v_draw.cpp +++ b/source/common/2d/v_draw.cpp @@ -445,7 +445,7 @@ bool SetTextureParms(F2DDrawer * drawer, DrawParms *parms, FGameTexture *img, do parms->destwidth *= parms->patchscalex; parms->destheight *= parms->patchscaley; - if (parms->flipoffsets && parms->flipY) parms->top = parms->texwidth - parms->top; + if (parms->flipoffsets && parms->flipY) parms->top = parms->texheight - parms->top; if (parms->flipoffsets && parms->flipX) parms->left = parms->texwidth - parms->left; switch (parms->cleanmode)