- moved some utility code out of FTexture.

This commit is contained in:
Christoph Oelckers 2018-12-08 20:44:28 +01:00
commit e35d88e039
15 changed files with 210 additions and 217 deletions

View file

@ -39,6 +39,7 @@
#include "v_palette.h"
#include "v_video.h"
#include "bitmap.h"
#include "imagehelpers.h"
// posts are runs of non masked source pixels
@ -179,7 +180,7 @@ TArray<uint8_t> FPatchTexture::Get8BitPixels(bool alphatex)
maxcol = (const column_t *)((const uint8_t *)patch + Wads.LumpLength (SourceLump) - 3);
remap = GetRemap(alphatex, isalpha);
remap = ImageHelpers::GetRemap(alphatex, isalpha);
// Special case for skies
if (bNoRemap0 && remap == GPalette.Remap)
{