Maxim Integrated / Mbed OS MAXREFDES155#

Dependencies:   MaximInterface

Revision:
11:989eabe2a376
Parent:
10:71359af61af8
Child:
13:6a6225690c2e
--- a/InitWindow.cpp	Mon Apr 10 11:55:33 2017 -0500
+++ b/InitWindow.cpp	Wed May 03 16:08:59 2017 -0500
@@ -104,17 +104,17 @@
 }
 
 void InitWindow::doRender(Bitmap & bitmap, int xOffset, int yOffset) const
-{       
-    Bitmap maximLogo(maximLogoWidth, maximLogoHeight, maximLogoData, Bitmap::ScanLineFormat);
+{   
     Text title;
     title.setText("MAXREFDES155#");
     title.resize(title.preferredWidth(), title.preferredHeight());
-    title.move(0, maximLogo.height() + 5);
+    title.move(0, maximLogoHeight + 5);
     Text description;
     description.setText(m_state == Completed ? "Any key to begin" : "Initializing...");
     description.resize(description.preferredWidth(), description.preferredHeight());
     description.move(0, title.y() + title.height() + 5);
-    bitmap.overlay(maximLogo, xOffset + x(), yOffset + y());
+    bitmap.overlay(xOffset + x(), yOffset + y(),
+                   maximLogoData, sizeof(maximLogoData) / sizeof(maximLogoData[0]), maximLogoWidth);
     title.render(bitmap, xOffset + x(), yOffset + y());
     description.render(bitmap, xOffset + x(), yOffset + y());
 }