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:
parent
5822cfded1
commit
06bef98a05
9 changed files with 44 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue