Switch the framebuffer address rather than using 2 LTDC layers

This commit is contained in:
Raphael Coeffic
2021-05-23 08:19:56 +02:00
committed by Raphael Coeffic
parent ec87e40c56
commit 95aa02cedd
7 changed files with 40 additions and 93 deletions
+1 -3
View File
@@ -76,7 +76,6 @@ void drawValueOrGVar(BitmapBuffer * dc, coord_t x, coord_t y, gvar_t value, gvar
void drawSleepBitmap()
{
lcdNextLayer();
lcd->reset();
lcd->clear();
@@ -97,7 +96,6 @@ void drawShutdownAnimation(uint32_t duration, uint32_t totalDuration, const char
static const BitmapBuffer * shutdown = BitmapBuffer::loadBitmap(OpenTxTheme::instance()->getFilePath("shutdown.bmp"));
lcdNextLayer();
lcd->reset();
if (shutdown) {
@@ -431,4 +429,4 @@ void drawHexNumber(BitmapBuffer * dc, coord_t x, coord_t y, uint32_t val, LcdFla
c += (c >= 10 ? 'A' - 10 : '0');
x = dc->drawSizedText(x, y, &c, 1, flags);
}
}
}