- changed return value of CreatePalettedPixels.

The new struct will allpw return of static pixel data without reallocation and copying.
This commit is contained in:
Christoph Oelckers 2023-01-07 17:55:55 +01:00
commit 1a0aa95ff4
24 changed files with 103 additions and 84 deletions

View file

@ -98,9 +98,9 @@ public:
}
}
TArray<uint8_t> CreatePalettedPixels(int conversion) override
PalettedPixels CreatePalettedPixels(int conversion) override
{
TArray<uint8_t> Pix(512, true);
PalettedPixels Pix(512);
if (conversion == luminance)
{
memcpy(Pix.Data(), Pixels, 512);