[Horus] More bitmaps on SD. PNG format used instead of BMP. And yes it's a bad idea given the resources we have.
This commit is contained in:
@@ -366,11 +366,11 @@ bool menuGeneralSdManager(evt_t _event)
|
||||
if (currentBitmapIndex != menuVerticalPosition) {
|
||||
currentBitmapIndex = menuVerticalPosition;
|
||||
delete currentBitmap;
|
||||
currentBitmap = BitmapBuffer::load(reusableBuffer.sdmanager.lines[index], true);
|
||||
currentBitmap = BitmapBuffer::load(reusableBuffer.sdmanager.lines[index]);
|
||||
// TODO scale in case of a too large bitmap
|
||||
}
|
||||
if (currentBitmap) {
|
||||
lcd->drawAlphaBitmap(LCD_W / 2, LCD_H / 2, currentBitmap);
|
||||
lcd->drawBitmap(LCD_W / 2, LCD_H / 2, currentBitmap);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user