fix(color): load bootloader bitmaps in bootloaderInitScreen() (#6177)
This commit is contained in:
@@ -25,8 +25,14 @@
|
||||
#include "lz4/lz4.h"
|
||||
#include "edgetx_helpers.h"
|
||||
|
||||
LZ4BitmapBuffer::LZ4BitmapBuffer(uint8_t format, const LZ4Bitmap* lz4Data) :
|
||||
LZ4BitmapBuffer::LZ4BitmapBuffer(uint8_t format) :
|
||||
BitmapBuffer(format, 0, 0, nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
LZ4BitmapBuffer::~LZ4BitmapBuffer() { free(data); }
|
||||
|
||||
void LZ4BitmapBuffer::load(const LZ4Bitmap* lz4Data)
|
||||
{
|
||||
_width = lz4Data->width;
|
||||
_height = lz4Data->height;
|
||||
@@ -39,8 +45,6 @@ LZ4BitmapBuffer::LZ4BitmapBuffer(uint8_t format, const LZ4Bitmap* lz4Data) :
|
||||
data_end = data + pixels;
|
||||
}
|
||||
|
||||
LZ4BitmapBuffer::~LZ4BitmapBuffer() { free(data); }
|
||||
|
||||
#if !defined(BOOT)
|
||||
|
||||
MaskBitmap* _decompressed_mask(const uint8_t* lz4_compressed)
|
||||
|
||||
@@ -154,6 +154,8 @@ struct LZ4Bitmap {
|
||||
class LZ4BitmapBuffer : public BitmapBuffer
|
||||
{
|
||||
public:
|
||||
LZ4BitmapBuffer(uint8_t format, const LZ4Bitmap* compressed_data);
|
||||
LZ4BitmapBuffer(uint8_t format);
|
||||
~LZ4BitmapBuffer();
|
||||
|
||||
void load(const LZ4Bitmap* compressed_data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user