🚸 Fix and improve MKS LVGL UI (#22783)
Co-authored-by: makerbase <4164049@qq.com> Co-authored-by: MKS-Sean <56996910+MKS-Sean@users.noreply.github.com> Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@@ -43,9 +43,9 @@ uint32_t SPIFlashStorage::m_startAddress;
|
||||
static uint32_t rle_compress(T *output, uint32_t outputLength, T *input, uint32_t inputLength, uint32_t& inputProcessed) {
|
||||
uint32_t count = 0, out = 0, index, i;
|
||||
T pixel;
|
||||
//32767 for uint16_t
|
||||
//127 for uint16_t
|
||||
//calculated at compile time
|
||||
// 32767 for uint16_t
|
||||
// 127 for uint16_t
|
||||
// calculated at compile time
|
||||
constexpr T max = (0xFFFFFFFF >> (8 * (4 - sizeof(T)))) / 2;
|
||||
|
||||
inputProcessed = 0;
|
||||
|
||||
Reference in New Issue
Block a user