Maxim Integrated / Mbed OS MAXREFDES155#

Dependencies:   MaximInterface

Revision:
10:71359af61af8
Parent:
8:a0d75dff3c9b
Child:
11:989eabe2a376
--- a/InitWindow.cpp	Thu Apr 06 15:19:57 2017 -0500
+++ b/InitWindow.cpp	Mon Apr 10 11:55:33 2017 -0500
@@ -103,7 +103,7 @@
     setFocused();
 }
 
-void InitWindow::doRender(Bitmap & bitmap) const
+void InitWindow::doRender(Bitmap & bitmap, int xOffset, int yOffset) const
 {       
     Bitmap maximLogo(maximLogoWidth, maximLogoHeight, maximLogoData, Bitmap::ScanLineFormat);
     Text title;
@@ -114,9 +114,9 @@
     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, 0, 0);
-    bitmap.overlay(title.render(), title.x(), title.y());
-    bitmap.overlay(description.render(), description.x(), description.y());
+    bitmap.overlay(maximLogo, xOffset + x(), yOffset + y());
+    title.render(bitmap, xOffset + x(), yOffset + y());
+    description.render(bitmap, xOffset + x(), yOffset + y());
 }
 
 void InitWindow::updated()