From f4c5a25a52993a9e673c69f10e1e6d3021648649 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Sep 2020 22:03:15 +0200 Subject: [PATCH] - fixed: CreateTexBuffer did not check the Inactive flag for the requested translation. --- src/common/textures/texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/textures/texture.cpp b/src/common/textures/texture.cpp index 20a8d97762..85b98789be 100644 --- a/src/common/textures/texture.cpp +++ b/src/common/textures/texture.cpp @@ -357,6 +357,7 @@ FTextureBuffer FTexture::CreateTexBuffer(int translation, int flags) memset(buffer, 0, W * (H + 1) * 4); auto remap = translation <= 0 ? nullptr : GPalette.TranslationToTable(translation); + if (remap && remap->Inactive) remap = nullptr; if (remap) translation = remap->Index; FBitmap bmp(buffer, W * 4, W, H);