From ebf50aad444626b0d6098900040cad38e92b3be2 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Fri, 2 Oct 2020 20:40:42 -0300 Subject: [PATCH] Use leftoffset and topoffset, not loffs and toffs --- src/r_picformats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_picformats.c b/src/r_picformats.c index f77d7dc487..95fe23aeb1 100644 --- a/src/r_picformats.c +++ b/src/r_picformats.c @@ -1188,7 +1188,7 @@ void *Picture_PNGConvert( } // Now, convert it! - converted = Picture_PatchConvert(informat, flat, outformat, insize, outsize, (INT16)width, (INT16)height, loffs, toffs, flags); + converted = Picture_PatchConvert(informat, flat, outformat, insize, outsize, (INT16)width, (INT16)height, *leftoffset, *topoffset, flags); Z_Free(flat); return converted; }