Switch the framebuffer address rather than using 2 LTDC layers
This commit is contained in:
committed by
Raphael Coeffic
parent
ec87e40c56
commit
95aa02cedd
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user