[Horus] Revert to BMP bitmaps instead of PNG. It uses far less CPU

This commit is contained in:
Bertrand Songis
2016-03-01 19:01:31 +01:00
parent 8427e6ed04
commit 9a615adff7
29 changed files with 226 additions and 30 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ class DefaultTheme: public Theme
virtual void drawBackground() const
{
static BitmapBuffer * backgroundBitmap = BitmapBuffer::load(getThemePath("mainbg.png"));
static BitmapBuffer * backgroundBitmap = BitmapBuffer::load(getThemePath("mainbg.bmp"));
if (backgroundBitmap) {
lcd->drawBitmap(0, 0, backgroundBitmap);
}
@@ -80,7 +80,7 @@ class DefaultTheme: public Theme
virtual void drawAboutBackground() const
{
static BitmapBuffer * backgroundBitmap = BitmapBuffer::load(getThemePath("aboutbg.png"));
static BitmapBuffer * backgroundBitmap = BitmapBuffer::load(getThemePath("aboutbg.bmp"));
lcd->drawBitmap(0, 0, backgroundBitmap);
}