From 884c5d25782ef39e8db72fc3e4887be52cfcd798 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 27 Mar 2025 19:48:17 +0100 Subject: [PATCH] fix vertical patch scale not working when horizontal scale is also not changed in opengl patch drawer --- src/hardware/hw_draw.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index c24fbdb56..d677af281 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -252,16 +252,8 @@ void HWR_DrawStretchyFixedPatch(GLPatch_t *gpatch, fixed_t x, fixed_t y, fixed_t } } - if (pscale != FRACUNIT) - { - fwidth = (float)SHORT(gpatch->width) * fscalew * dupx; - fheight = (float)SHORT(gpatch->height) * fscaleh * dupy; - } - else - { - fwidth = (float)SHORT(gpatch->width) * dupx; - fheight = (float)SHORT(gpatch->height) * dupy; - } + fwidth = (float)SHORT(gpatch->width) * fscalew * dupx; + fheight = (float)SHORT(gpatch->height) * fscaleh * dupy; // positions of the cx, cy, are between 0 and vid.width/vid.height now, we need them to be between -1 and 1 cx = -1.0f + (cx / (vid.width / 2.0f));