From 739b015a4d6b9c3a43008904abd58ee765f79220 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 28 Apr 2022 21:14:50 +0200 Subject: [PATCH] - reinstated code that has gotten lost. Fixes texture trimming. --- src/common/textures/gametexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/textures/gametexture.cpp b/src/common/textures/gametexture.cpp index c5979a7a9..8d0019081 100644 --- a/src/common/textures/gametexture.cpp +++ b/src/common/textures/gametexture.cpp @@ -311,7 +311,7 @@ void FGameTexture::SetupSpriteData() if (i == 1 && ShouldExpandSprite()) { - spi.mTrimResult = Base->TrimBorders(spi.trim); // get the trim size before adding the empty frame + spi.mTrimResult = Base->TrimBorders(spi.trim) && !GetNoTrimming(); // get the trim size before adding the empty frame spi.spriteWidth += 2; spi.spriteHeight += 2; }