add RLE support for other bootloader bitmaps as well

This commit is contained in:
Raphael Coeffic
2018-07-06 08:59:34 +02:00
parent 96afa57d84
commit 7806382d8e
7 changed files with 126 additions and 70 deletions
+3 -1
View File
@@ -489,6 +489,8 @@ void BitmapBuffer::drawBitmapPatternPie(coord_t x0, coord_t y0, const uint8_t *
}
}
#if !defined(BOOT)
BitmapBuffer * BitmapBuffer::load(const char * filename)
{
const char * ext = getFileExtension(filename);
@@ -743,7 +745,6 @@ void *stb_realloc(void *ptr, unsigned int oldsz, unsigned int newsz)
}
#endif // #if defined(TRACE_STB_MALLOC)
#include "thirdparty/Stb/stb_image.h"
// fill 'data' with 'size' bytes. return number of bytes actually read
@@ -831,3 +832,4 @@ BitmapBuffer * BitmapBuffer::load_stb(const char * filename)
stbi_image_free(img);
return bmp;
}
#endif