mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 17:55:19 +03:00
BMP also works (1bit bitmaps are not supported by stb-image library)
This commit is contained in:
parent
acaa77daab
commit
d7112b5dd7
2 changed files with 2 additions and 1 deletions
|
@ -427,6 +427,7 @@ const char *writeScreenshot()
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#define STBI_ONLY_PNG
|
#define STBI_ONLY_PNG
|
||||||
#define STBI_ONLY_JPEG
|
#define STBI_ONLY_JPEG
|
||||||
|
#define STBI_ONLY_BMP
|
||||||
#include "thirdparty/Stb/stb_image.h"
|
#include "thirdparty/Stb/stb_image.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -360,7 +360,7 @@ bool menuGeneralSdManager(evt_t _event)
|
||||||
if (ext && !strcasecmp(ext, BITMAPS_EXT)) {
|
if (ext && !strcasecmp(ext, BITMAPS_EXT)) {
|
||||||
if (lastBitmap != menuVerticalPosition) {
|
if (lastBitmap != menuVerticalPosition) {
|
||||||
lastBitmap = menuVerticalPosition;
|
lastBitmap = menuVerticalPosition;
|
||||||
if (bmpLoad(modelBitmap, reusableBuffer.sdmanager.lines[index], MODEL_BITMAP_WIDTH, MODEL_BITMAP_HEIGHT)) {
|
if (imgLoad(modelBitmap, reusableBuffer.sdmanager.lines[index], MODEL_BITMAP_WIDTH, MODEL_BITMAP_HEIGHT)) {
|
||||||
((uint32_t *)modelBitmap)[0] = 0;
|
((uint32_t *)modelBitmap)[0] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue