1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 17:55:19 +03:00

[Horus] Model bitmaps can now be either BMP or JPG or BMP

This commit is contained in:
Bertrand Songis 2016-06-07 18:06:34 +02:00
parent 5822cfded1
commit 06bef98a05
9 changed files with 44 additions and 15 deletions

View file

@ -480,7 +480,7 @@ void BitmapBuffer::drawBitmapPatternPie(coord_t x0, coord_t y0, const uint8_t *
BitmapBuffer * BitmapBuffer::load(const char * filename)
{
const char * ext = getFileExtension(filename);
if (!strcmp(ext, ".bmp"))
if (ext && !strcmp(ext, ".bmp"))
return load_bmp(filename);
else
return load_stb(filename);